Rick Roll users of your application by applying a Middleware that will randomly determine their fate!
Applying the RickRollMiddleware to your Web Middleware Group will randomly generate a number on each web request, if the outcome is zero, they will be returned a view with an embed youtube video of Rick Astley's Never Gonna Give You Up instead of their expected request.
You can install the package via composer:
composer require drunkcode/rickroll
Add the Drunkcode\RickRoll\Http\Middleware\RickRollMiddleware::class
middleware to your web middleware group in app\Http\Kernel.php
file
// app\Http\Kernel.php
protected $middlewareGroups = [
'web' => [
...
\Drunkcode\RickRoll\Http\Middleware\RickRollMiddleware::class,
],
...
];
composer test
Please see CHANGELOG for more information what has changed recently.
Please see CONTRIBUTING for details.
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.