In this lesson, we will display an active parking list with a stop button to end parking.
Want to access all of our courses? (36 h 00 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() ?
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() ?