Download the PHP package felixdorn/laravel-rickroll without Composer
On this page you can find all versions of the php package felixdorn/laravel-rickroll. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download felixdorn/laravel-rickroll
More information about felixdorn/laravel-rickroll
Files in felixdorn/laravel-rickroll
Package laravel-rickroll
Short Description Rickrolls people trying to break your site.
License MIT
Homepage https://github.com/felixdorn/laravel-rickroll
Informations about the package laravel-rickroll

RickRoll for Laravel
Rickrolls people trying to break your site. This package is inspired by Liam Hammett's tweet.
Getting started
You can install the package via composer, if you don't have composer installed, you can download it here:
Or by adding a requirement in your composer.json
:
We need your knowledge!
Do you know any well-known url that "hackers" use to gather information/secrets ? Add these here, thanks!
Usage
On your routes/web.php
just add this single line, and we'll handle the rest for you!
Redirecting to a custom URL
Remove all URLs
Adding a URL
Helper
There is a rickroll
function available if you want to rickroll someone in one of your controllers.
You don't need to return anything, it works just like an abort
.
Events
We're dispatching an event with the current request when someone is rick-rolled. Just listen
for Felix\RickRoll\Events\RickRolled
in your EventServiceProvider
.
Testing
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
- Félix Dorn
- All Contributors
License
The MIT License (MIT). Please see License File for more information.