【发布时间】:2014-12-16 13:15:38
【问题描述】:
有什么办法可以在 routes.php 中做这个配置:
Route::get('/', function(){
if ( Auth::check() === FALSE )
{
return homeController@guest<--- Specific Controller's method
}
else
{
return homeController@logged <--- Specific Controller's method
}
});
我不想使用重定向,因为我想保留mysite.com/ 作为主地址。
【问题讨论】: