pointdeb/laravel-common

Common packages to start laravel app.

v0.1.1 2019-08-12 11:21 UTC

This package is auto-updated.

Last update: 2024-04-12 21:31:30 UTC


README

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 😄

LICENCE MIT