Create an empty http-api controller named VoteController. The VoteController is responsible to create, read, update or delete polls (CRUD-functions).
Use the artisan make-command to create it. Don't use the resource option. We will define our methods and routes by ourselves.
Create an empty route prefix for this controller. See below. Use the routing in routes/api.php because we write a http-api and backend is separated by frontend.
Create an empty http-api controller named VoteController. The VoteController is responsible to create, read, update or delete polls (CRUD-functions).
Use the artisan make-command to create it. Don't use the resource option. We will define our methods and routes by ourselves.
Create an empty route prefix for this controller. See below. Use the routing in routes/api.php because we write a http-api and backend is separated by frontend.
Resources