package-for-laravel / blade
Blade helpers and tools
Installs: 997
Dependents: 0
Suggesters: 1
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/package-for-laravel/blade
Requires
- php: ^7.3
- laravel/framework: ^5.8|^6.0
This package is auto-updated.
Last update: 2020-11-05 23:01:08 UTC
README
ARCHIVED: This project is archived and no longer maintained.
This adds useful blade tools.
Installation
composer require package-for-laravel/blade
Usage
@activeroute
directive
This takes a route string or array and returns the word active
if that pattern is matched. It's proxied to Request::Is
<a href="{{ route('users.index') }}" class="menu-link @activeroute(['users.*'])">Users</a>
This would make a class of menu-link active
when you are on routes named users.index
or users.create
, but just menu-link
on companies.index
.
Credits
This package is created and maintained by Aaron Saray