Support the ongoing development of Laravel.io →
posted 9 years ago
Architecture
Last updated 1 year ago.
0

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?

0

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*')
Last updated 9 years ago.
0

thank u so much, nice and clean :)

0

Sign in to participate in this thread!

Eventy

Your banner here too?

gelnor gelnor Joined 20 Jan 2015

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.