Redirect property

 How to Automatically Redirect from One Route to Another

If you are defining a route that redirects to another URI, you may use the Route::redirect method. This method provides a convenient shortcut so that you do not have to define a full route or controller for performing a simple redirect:

Syntax:

Route::redirect('/here', '/there');

Example:

Route::redirect('/', 'login');

    Route:: get('login', function() {
        return 'Login Page';
    });
O/P


Comments