In this lesson, we will display an active parking list with a stop button to end parking.

1. Two new methods
Let's add two more methods into src/stores/parking.js...
In this lesson, we will display an active parking list with a stop button to end parking.

Let's add two more methods into src/stores/parking.js...
I noticed that the API for the parking list is missing. (https://laraveldaily.com/lesson/build-laravel-api-step-by-step/start-stop-parking)
You can add this route to api.php file, this is in middleware
Then add this action to ParkingController
We already have active scope in the
Parkingmodel. Another way to write this method could be:Do not forget to put zone model for the zone name and price.
Pls my active parking list is not showing with a stop button i don't know what might be the problem