For the following URLs:
- http://localhost/admin/users
- http://localhost/admin/users/create
- http://localhost/admin/users/profile/1
I want to apply class "active" to users navigation dynamically in Laravel as follows:
<ul>
<li class="active"><a href="">Users</a></li>
<li class=""><a href="">Pages</a></li>
</ul>
What is the clean and reusable way to do this without using third party plugins?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire