PHP code example of noname9 / redirect
1. Go to this page and download the library: Download noname9/redirect 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/ */
noname9 / redirect example snippets
php artisan vendor:publish --tag=redirect-migrations
protected $routeMiddleware = [
'redirect' => \Artjoker\Redirect\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