Laravel 5.3 Route does not accept parameters other than "/"

Asked

Viewed 72 times

1

Good morning. I’m new to Standard and installed 5.3 with php 5.6. When I started defining the routes I came across the situation of that method Route::get() in the first argument only accepts "/". When I tried to define another route as for example Route::get("/empresa", 'FrontController@empresa'); it always returns "Method not allowed! The GET method is not allowed for the requested URL." that is, the only route I can define is "/" besides this always returns this error.

Grateful for your help.

ERROR:

Method not allowed! The GET method is not allowed for the requested URL. If you think this is a server error, Please contact the webmaster. Error 404 localhost Apache/2.4.23 (Win32) Openssl/1.0.2h PHP/5.6.28

  • You don’t need to put the /.

  • continues the same mistake, I tried it like this too

  • How are you accessing the page ? Post your route file and your controller, please.

  • Method not allowed! The GET method is not allowed for the requested URL. If you think this is a server error, Please contact the webmaster. Error 404 localhost Apache/2.4.23 (Win32) Openssl/1.0.2h PHP/5.6.28

  • Edit your question and post your route file and your controller, please.

  • Error 404 is likely that you have not configured Laravel properly this answer should solve your problem http://answall.com/a/91799/3635

  • Edit your question and post your route file and your controller, please.

  • I have found out. It was exactly misconfigured as the link Voce gave me. Thank you

  • For nothing ;) See you later

Show 4 more comments
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.