Search
 
SCRIPT & CODE EXAMPLE
 

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');
});
Comment

PREVIOUS NEXT
Code Example
Php :: laravel transactions eloquent 
Php :: explode (PHP 4, PHP 5, PHP 7, PHP 8) explode — Split a string by a string 
Php :: sqlstate[22023]: invalid parameter value: 
Php :: php foreach json object 
Php :: in php how to check md5 password 
Php :: php return associative array 
Php :: check if any values are the same in an array php 
Php :: rodar migration laravel 
Php :: wc php product_cat thumbnail 
Php :: php get locale active 
Php :: laravel pagination get items array 
Php :: enable trash for media wordpress 
Php :: php file iterator 
Php :: php compress csv file 
Php :: check array has keys in php 
Php :: convert_uuencode (PHP 5, PHP 7, PHP 8) convert_uuencode — Uuencode a string 
Php :: laravel password test 
Php :: heroku deploy php 
Php :: cakephp group by count 
Php :: phpdoc @var 
Php :: Laravel htaccess for aws ec2 
Php :: php check if stdclass object has property 
Php :: php check if input is a positive integer 
Php :: php receive request 
Php :: Unable to do sum and getting same value by using while loop php 
Php :: json_decode php multidimensional array 
Php :: laravel id generator 
Php :: laravel search function 
Php :: Csv To AssoT Php 
Php :: php variable 
ADD CONTENT
Topic
Content
Source link
Name
6+5 =