I know i is a very common question, but i am purely new to laravel and i know very little about laravel thats's why i am asking it.
So point is that when a user enters http://dytube.cric4fun.com/ he must be automatically redirected to the http://dytube.cric4fun.com/login
So, how i do this, in past in simple non-laravel based we used .htaccess and in laravel how we will do it.
You can change your home directory route in web.php file like this:
Route::get('/', function(){
return redirect()->route('login');
});
This way, if the user is logged in, he/she will be automatically redirected to home page and anywhere you have chosen for redirection after successful login.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.