onemustcode / laravel
Handy Laravel utils
Installs: 2 216
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 1
Open Issues: 0
Requires
- php: >=5.6.4
Requires (Dev)
- mockery/mockery: dev-master
- phpunit/phpunit: ^4.0
- symfony/var-dumper: ^3.2
This package is auto-updated.
Last update: 2024-10-04 22:17:48 UTC
README
This package holds some simple Laravel utils.
Installation
Require this package
composer require onemustcode/laravel
After adding the package, add the ServiceProvider to the providers array in config/app.php
OneMustCode\Laravel\LaravelServiceProvider::class,
Route::is()
The is method is an marco that is attached to the Route Facade. It's just like the is method on the Request Facade, but then for route names.
$bool = Route::is('route.name', 'other.route*');
License
MIT