PHP code example of gocrew / laravel-reauth

1. Go to this page and download the library: Download gocrew/laravel-reauth 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/ */

    

gocrew / laravel-reauth example snippets


protected $routeMiddleware = [
    // ...
    'reauth'         => \gocrew\LaravelReAuth\Http\Middleware\Reauthenticate::class,
    // ...
];

Route::get('settings', ['uses' => 'Controller@getSettings', 'middleware' => 'reauth']);