PHP code example of jezzdk / laravel-sweet-regan
1. Go to this page and download the library: Download jezzdk/laravel-sweet-regan 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/ */
jezzdk / laravel-sweet-regan example snippets
protected $middlewareGroups = [
'web' => [
\Jezzdk\LaravelSweetRegan\Http\Middleware\SweetRegan::class,
],
];
return [
// How often do you want Regan to visit your site?
'chance' => '1:10',
// How long do you want Regan to stay on your site? (in seconds)
'visit_length' => 2,
];
php artisan vendor:publish --provider="Jezzdk\LaravelSweetRegan\SweetReganServiceProvider"