In this lesson, we will implement form functionality to make a request to the server, and if the request was successful (the user was registered) redirect to the vehicles list page.


- First create a new
src/views/vehicles/VehiclesList.jsxview for our future list. This is the page where the user will be redirected after registration...
Hello, I have this error when try to send the form:
xhr.js:247 POST http://localhost:5174/api/V1/auth/register 404 (Not Found)
.envfile, do you haveAPP_URL=http://localhost:5174?RouteServiceProvider, did you specify V1 prefix?This should come from Backend (Laravel) I think. For localhost:5174 it is from frontend React(Vite).
You must find car-parking app api laravel then You should built it. Maybe url should be
http://127.0.0.1:8000/api/V1/auth/register instead.
For http://parkingapi.test/api/v1/auth/register it is just a dummy one.
In case you're stuck with the API, you have to git clone this project: https://github.com/LaravelDaily/Laravel-API-Parking-Demo.git. Then, install it as a regular Laravel app (composer install, npm install, artisan migrate, artisan key:generate), run it with Valet (careful of the app directory's name to match API url) / Docker and you're good to go!