Skip to main content

Black Friday 2025! Only until December 1st: coupon FRIDAY25 for 40% off Yearly/Lifetime membership!

Read more here

Active parkings and Stop parking

Premium
3 min read

Comments & Discussion

J
jwinder ✓ Link copied!

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() ?