PHP code example of lumber94 / redirector
1. Go to this page and download the library: Download lumber94/redirector 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/ */
lumber94 / redirector example snippets
php artisan vendor:publish --tag=redirect-migrations
protected $routeMiddleware = [
'redirect' => \Lumber94\Redirector\Http\Middleware\RedirectMiddleware::class,
];
Route::get('/', function () {
// ...
})->middleware('redirect');
php artisan vendor:publish --tag=redirect-lang
php artisan vendor:publish --tag=redirect-views
php artisan vendor:publish --tag=redirect-config
php artisan vendor:publish --tag=redirect-migrations