2016-07-21 42 views
0

は、私は、次のcurlコマンドを使用しているときMethod Not Allowedエラーを受け取るように見える:Laravelルーティングは大文字と小文字を区別しますか?

curl -sv https://jwelford.co.uk/cart/add -X POST 

しかし、post代わりのPOSTを使用して、すべてが正常に動作するようです。あなたはlaravelの大文字と小文字を区別しないを作りたい場合は

Route::post('/cart/add', function(Request $request){ 
    return 'You hit /cart/add'; 
}); 
+0

を多分にここで確認できます:[http://stackoverflow.com/questions/31964973/how-to-make-routes-in-laravel-case-insensitive](http://stackoverflow.com/questions/31964973/how-to -make-routes-in-laravel-case-insensitive) –

+0

これは自己のURL。このような方法でも使用できますか? – Polarize

答えて

関連する問題