PHP code example of mathiasgrimm / laravel-puff

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

    

mathiasgrimm / laravel-puff example snippets


return [
    'register_route' => true,          // set false to define the route yourself
    'path'           => 'puff',        // POST /puff
    'name'           => 'puff',        // route name
    'middleware'     => ['web'],       // public by default; add 'auth' to restrict
    'throttle'       => '60,1',         // rate limit (maxAttempts,decayMinutes); null to disable
    'warm' => [
        'database' => [
            'enabled'     => true,
            'connections' => [],       // empty = default; or ['mysql', 'reports']
        ],
        'redis' => [
            'enabled'     => true,
            'connections' => [],       // empty = default; or ['default', 'cache']
        ],
    ],
];
json
"scripts": {
    "post-update-cmd": [
        "@php artisan puff:publish --ansi"
    ]
}