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
/
.– Diego Souza
continues the same mistake, I tried it like this too
– Aron Brivio
How are you accessing the page ? Post your route file and your controller, please.
– Diego Souza
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
– Aron Brivio
Edit your question and post your route file and your controller, please.
– Diego Souza
Error 404 is likely that you have not configured Laravel properly this answer should solve your problem http://answall.com/a/91799/3635
– Guilherme Nascimento
Edit your question and post your route file and your controller, please.
– Diego Souza
I have found out. It was exactly misconfigured as the link Voce gave me. Thank you
– Aron Brivio
For nothing ;) See you later
– Guilherme Nascimento