LaravelPackages.net
Acme Inc.
Toggle sidebar
jezzdk/laravel-sweet-regan

Shows a lovely message from everyones favorite demon every once in a while.

6
0
v1.1
About jezzdk/laravel-sweet-regan

jezzdk/laravel-sweet-regan is a Laravel package for shows a lovely message from everyones favorite demon every once in a while.. It currently has 0 GitHub stars and 6 downloads on Packagist (latest version v1.1). Install it with composer require jezzdk/laravel-sweet-regan. Discover more Laravel packages by jezzdk or browse all Laravel packages to compare alternatives.

Last updated

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

Star History Chart