How to check for route namespace in Laravel -
how check route namespace in laravel similar how next code does?
{{ (request::is('user*') ? 'active ' : '')
this way can request segment:
{{ (request::segment(1) == 'user') ? 'active' : '' }}
so /user/username
, /user/show
or /user
etc, match.
http://laravel.com/docs/4.2/requests#request-information
laravel laravel-4 laravel-routing
No comments:
Post a Comment