LaravelPackages.net
Acme Inc.
Toggle sidebar
onemustcode/laravel

Handy Laravel utils

2.217
0
v1.0.0
About onemustcode/laravel

onemustcode/laravel is a Laravel package for handy laravel utils. It currently has 0 GitHub stars and 2.217 downloads on Packagist (latest version v1.0.0). Install it with composer require onemustcode/laravel. Discover more Laravel packages by onemustcode or browse all Laravel packages to compare alternatives.

Last updated

Laravel utils

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

Comments