Looking to hire Laravel developers? Try LaraJobs

laravel-sweet-regan maintained by jezzdk

Description
Shows a lovely message from everyones favorite demon every once in a while.
Author
Last update
2022/01/05 08:33 (dev-main)
License
Links
Downloads
6

Comments
comments powered by Disqus

Laravel Sweet Regan

Installation

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"

Configuration

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,
];