Php 未重定向Laravel 5.2中的登录页面
我正在使用Laravel5.2,并使用auth命令开发日志/注册系统和Lartrust管理面板。现在,当我使用系统日志页面登录时,没有移动到Php 未重定向Laravel 5.2中的登录页面,php,laravel,Php,Laravel,我正在使用Laravel5.2,并使用auth命令开发日志/注册系统和Lartrust管理面板。现在,当我使用系统日志页面登录时,没有移动到localhost:8000/home页面。它再次重定向到welcome.blade.php页面。如何将登录页面重定向到localhost:8000/home My routes.php Route::get('/', function () { return view('welcome'); }); Route::auth(); Route::
localhost:8000/home
页面。它再次重定向到welcome.blade.php
页面。如何将登录页面重定向到localhost:8000/home My routes.php
Route::get('/', function () {
return view('welcome');
});
Route::auth();
Route::get('/home', 'HomeController@index')->name('home');
在登录控制器中,将重定向到“/”更改为“/home”
class LoginController extends Controller
{
use AuthenticatesUsers;
protected $redirectTo = '/home';
}