In this lesson, we will display an active parking list with a stop button to end parking.
Want to access all of our courses? (30 h 50 min)
You also get:
Already a member? Login here
There was an endpoint not included with the Laravel API lesson if im not mistaken.
Route::get('parkings', [ParkingController::class,'active']);
public function index() { return ParkingResource::collection(Parking::active()->get()); }
not sure if this is correct or not, in the next lesson for history essentially do the same thing but do Parking::stopped()->get() ?
Tell us what you like or what we can improve
Feel free to share anything you like or dislike about this page or the platform in general.
Your feedback has been received. We truly appreciate you taking the time to help us improve.
There was an endpoint not included with the Laravel API lesson if im not mistaken.
public function index() { return ParkingResource::collection(Parking::active()->get()); }
not sure if this is correct or not, in the next lesson for history essentially do the same thing but do Parking::stopped()->get() ?