Laravel:未定义的路线

时间:2014-09-28 11:28:10

标签: laravel-4 routes views

我一直试图弄清楚我在这里做错了很长一段时间。当我转到localhost:8000 / library / create时,我不断收到此错误消息。我的错误信息如下:

ErrorException (E_UNKNOWN) 
Route [/create] not defined. (View: C:\wamp\www\cite\app\views\library\create.blade.php)

在我的LibraryController我的create方法链接到views/library/create.blade.php

class LibraryController extends BaseController
{

    public function create()
    {
        return View::make('library.create');
    }


}

我的路由声明为:

Route::resource('library', 'LibraryController');

php artisan routes也正确显示library/create。我哪里出错?

0 个答案:

没有答案