Looking to hire Laravel developers? Try LaraJobs

laravel-common maintained by pointdeb

Description
Common packages to start laravel app.
Last update
2019/08/12 13:21 (v0.1.1)
License
Links
Downloads
21

Comments
comments powered by Disqus

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