我一直试图弄清楚我在这里做错了很长一段时间。当我转到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
。我哪里出错?