laravel-common maintained by pointdeb
LARAVEL COMMON
this package provide common laravel functionality used to begin a project.
Installation
composer require pointdeb/laravel-common
VALIDATORS:
In AppServiceProvider.php add this line in boot function
public function boot()
{
...
\Pointdeb\LaravelCommon\Validators\HttpValidator::boot();
}
ETAG
- Laravel: in Kernel.php register the middleware
protected $middleware = [
...
\App\Http\Middleware\Etag::class,
];
- Lumen: in app.php register the middleware
$app->middleware([
...
\Pointdeb\LaravelCommon\Middlewares\Etag::class,
]);
Comming soon :smile:
LICENCE MIT