Downloads
Stars
Version
To summon Sweet Regan, add the following middleware to your web group:
protected $middlewareGroups = [
'web' => [
\Jezzdk\LaravelSweetRegan\Http\Middleware\SweetRegan::class,
],
];
You may publish the config file and view with:
php artisan vendor:publish --provider="Jezzdk\LaravelSweetRegan\SweetReganServiceProvider"
The default config looks like this:
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,
];