PHP code example of pointdeb / laravel-common

1. Go to this page and download the library: Download pointdeb/laravel-common library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

pointdeb / laravel-common example snippets


public function boot()
{
    ...
    \Pointdeb\LaravelCommon\Validators\HttpValidator::boot();
}

protected $middleware = [
        ...
        \App\Http\Middleware\Etag::class,
    ];

$app->middleware([
    ...
     \Pointdeb\LaravelCommon\Middlewares\Etag::class,
 ]);