Replies: 1 comment
-
Hi! I'd suggest using a custom filter that uses the Good luck! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to get all Bookings for a user - which is a polymorphic of bookable. So bookable can be user or guest
Currently I have two routes
For detail
Route::get('/bookings/{booking:slug}','Managersapi\Booking\BookingListingsController@show');
For all
Route::get('/bookings','Managersapi\Booking\BookingListingsController@list');
But I want to do something like
Route::get('/bookings?bookable=User:12345','Managersapi\Booking\BookingListingsController@show');
How would something like this be possible?
Beta Was this translation helpful? Give feedback.
All reactions