Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

change default route laravel

Laravel v9
  
  After your login, you will beeing redirect to the homepage but you can
 change that in RouteServiceProvider

RouteServiceProvider.php
  
  //public const HOME = '/home';
  
  public const HOME = '/hello';

If you wanna change the default page , what do you have to do is:

Route::get('/', function () {
    return redirect('/login');
});
 
PREVIOUS NEXT
Tagged: #change #default #route #laravel
ADD COMMENT
Topic
Name
2+1 =