PHP code example of felixdorn / laravel-rickroll

1. Go to this page and download the library: Download felixdorn/laravel-rickroll library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

felixdorn / laravel-rickroll example snippets


use Felix\Rickroll\Facades\RickRoll;

RickRoll::routes();

use Felix\Rickroll\Facades\RickRoll;

RickRoll::routes()->redirectsTo('https://mycustom.url');

use Felix\Rickroll\Facades\RickRoll;

RickRoll::routes()->clear();

use Felix\Rickroll\Facades\RickRoll;

RickRoll::routes()->push('/rickroll')
    ->push('/rickroll/{id}', [
        'id' => '[0-9]+'
    ]);

rickroll('https://my-custom.url');