PHP code example of shinsenter / defer-laravel

1. Go to this page and download the library: Download shinsenter/defer-laravel 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/ */

    

shinsenter / defer-laravel example snippets


protected $middleware = [
  \AppSeeds\DeferLaravel\DeferMiddleware::class,
    // ...
];

$app->register(\AppSeeds\DeferLaravel\DeferServiceProvider::class);

$app->configure('defer-laravel');

$app->middleware([
    // ...
    \AppSeeds\DeferLaravel\DeferMiddleware::class,
]);
sh
php artisan vendor:publish --tag="defer-laravel"