Currently i am using
@if(substr(strrchr(Route::currentRouteAction(),'\\'),1, strpos(strrchr(Route::currentRouteAction(),'\\'),'@') -1) == 'DoctorController')
@endif
But i dont like this solution, any advice?
I would do a boolean check using the named route, and use the asterisk to match any method of the DoctorController
Route::is('admin.doctors*')
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community