我有這個下面的路線和可以爲管理員,我有作秀任何觀點正確Laravel有一個名字分組路由
Route::get('admin/login', array('as'=>'login', function()
{
return View::make('back_end.login');
}));
app
views
back_end
layouts
index.blade.php
main.blade.php
profile.blade.php
login.blade.php
工作,我想分組與管理perfix。這個動作後並使用
http://localhost/laravel/public/admin/login
http://localhost/laravel/public/admin/profile
網址我得到這個錯誤:
Symfony \ Component \ HttpKernel \ Exception \ NotFoundHttpException
這是我的路線:
Route::group(array('prefix' => 'admin'), function()
{
Route::get('login', function()
{
return View::make('back_end.login');
});
Route::get('index', array('as'=>'dashboard'), function()
{
return View::make('back_end.layouts.index');
});
Route::get('profile', function()
{
return View::make('back_end.layouts.profile');
});
});
如何解決這個問題的路線。請幫我
運行'composer dump-autoload'並查看是否修復它。 – Dave