Skip to main content

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

We'd Love Your Feedback

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.