Redirect in Laravel routes file

Quick tip! If you want to easily redirect a URL in your Laravel routes (e.g. routes/web.php) you can do so like this:

Route::get('/forum', function() {
    return redirect('https://forum.mmo-population.com');
});

Got Something To Say?

Your email address will not be published. Required fields are marked *