Abstract | U uvodu su izdvojene glavne značajke PHP-a kao i njegova kratka povijest. Opisan je Laravel koji
se koristi kao razvojno okruženje. Visual Studio Code je uređivač koda, MySQL Workbench je
program kojim se upravlja s bazom podataka. Za stvaranje aplikacije koristile su se unaprijed
kreirane datoteke koje je stvorio Laravel pri kreiranju projekta, kao i naknadno kreirane datoteke.
Neke od naknadno kreiranih datoteka su bili modeli podatak koji su se koristili u projektu, te
pogledi koji se prikazuju u samoj web aplikaciji. U radu je prvo kreiran početni izgled aplikacije,
odnosno layout. Nakon uključivanja dodatnih datoteka, kao što je tražilica, kreirana je baza
podataka za oglase. Sukladno tome kreirana je baza podataka za korisnike te je omogućena
registracija i prijava korisnika u sustav. Kako bi se stvorili oglasi, korisnicima i administratoru je
omogućeno popunjavanje formulara za kreiranje oglasa. Administratoru je dodatno omogućeno
uređivanje svakoga oglasa kao i njegovo brisanje što administrator odrađuje iz manage pogleda.
Svaki oglas ima svoj detaljni pregled oglasa, što se postiže klikom miša na sami oglas. U
detaljnome pregledu korisnici mogu vidjeti više informacija o samome automobilu te po potrebi
kontaktirati vlasnika automobila. Sljedeća funkcionalnost koja je omogućena je kreiranje
rezervacija za pojedini automobil. Korisniku je omogućeno da vidi samo njegove rezervacije dok
administrator ima uvid u sve kreirane rezervacije i mogućnost brisanja svake od njih. Izmjena
između pogleda se vrši pozivanjem rute koja prosljeđuje zahtjev odgovarajućem kontroleru,
odnosno poziva funkciju koja pripada tom kontroleru. Izvršavanje neke funkcionalnosti radi na
vrlo sličan način kao i izmjena pogleda. Nakon klika na gumb, zahtjev se prosljeđuje ruti koja
poziva funkciju za određenu funkcionalnost. |
Abstract (english) | The introduction highlights the main features of PHP as well as its brief history. Laravel, which is
used as a development environment, is described. Visual Studio Code is a code editor, MySQL
Workbench is a database management program. To create the application, pre-created files created
by Laravel when creating the project, as well as subsequently created files, were used. Some of
the subsequently created files were data models that were used in the project, and views that are
displayed in the web application itself. In this work, the initial appearance of the application, or
'layout', was first created. After including additional files, such as a search engine, the ad database
is created. Accordingly, a database for users was created and user registration and login into the
system was enabled. In order to create ads, users and administrators are enabled to fill in the form
for creating ads. The administrator is additionally enabled to edit each ad as well as delete it, which
the administrator does from the manage view. Each ad has its own detailed overview of the ad,
which can be achieved by clicking the mouse on the ad itself. In the detailed overview, users can
see more information about the car itself and, if necessary, contact the owner of the car. The next
functionality that is enabled is the creation of reservations for an individual car. The user is allowed
to see only his reservations, while the administrator has insight into all created reservations and
the possibility of deleting each of them. Changing between views is done by calling Route, which
forwards the request to the corresponding controller, that is, calls the function that belongs to that
controller. Executing some functionality works in a very similar way to modifying a view. After
the button is clicked, the request is forwarded to the Route which calls the function for the specific
functionality. |