當我存儲後我得到這個錯誤MethodNotAllowedHttpException在RouteCollection.php線219
MethodNotAllowedHttpException in RouteCollection.php line 219:
什麼可能導致此問題?
routes.php文件:
Route::get('home', '[email protected]');
Route::get('/', '[email protected]');
Route::get('index', '[email protected]');
Route::get('posts', '[email protected]');
Route::get('post/{slug}/{id}', '[email protected]');
Route::get('posts/sukurti-nauja-straipsni', '[email protected]');
Route::patch('posts/store-new-post', '[email protected]');
Route::get('post/{slug}/{id}/edit', '[email protected]');
Route::patch('posts/{slug}', '[email protected]');
Route::get('tags/{tags}', '[email protected]');
Route::get('categories/{categories}', '[email protected]');
// Authentication routes...
Route::get('auth/login', 'Auth\[email protected]');
Route::post('auth/login', 'Auth\[email protected]');
Route::get('auth/logout', 'Auth\[email protected]');
// Registration routes...
Route::get('auth/register', 'Auth\[email protected]');
Route::post('auth/register', 'Auth\[email protected]');
我使用Laravel 5.1,我不明白這一點了一天..
當你發送郵寄東西,並試圖把它牽獲取或反過來會出現這種情況。 – patricio