Route::get('/', 'CategoryController@index');
Route::get('wiki/{category_slug}', 'CategoryController@categoryIndex');
Route::get('wiki/{category_slug}/{article_slug}', 'ArticleController@show');
Route::resource('wiki/article', 'ArticleController');
When I try to access wiki/article/create, I get this error message: Trying to get property of non-object and it seems to be using the 3rd route at ArticleController->show('article', 'create').
Does/what constraints does it need on the 3rd route (and 2nd since wiki/article for storing would not use the right controller either)?
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/1TE5UCh
via IFTTT
Aucun commentaire:
Enregistrer un commentaire