Well, I'm still new to using Laravel 5, but I have a problem with Routes that can not find a solution anywhere (just the same problem Here and no feasible solution)
I'll explain in the routes.php file when I try to define a route using POST it is not recognized!
Among other routes I have this:
Route::post('guarda-terreno',[
'as'=>'guardaTerrenoPost',
'uses'=>'TerrenoController@store',]);
This route should receive data from a form.
When I try to see the routes defined: php artisan route:list
this route does not appear in the listing. More weird, is that if I switch to
Route::get('guarda-terreno',[
'as'=>'guardaTerrenoPost',
'uses'=>'TerrenoController@store',]);
It already appears in the list!
I've tried this:
Route::post('guarda-terreno', 'TerrenoController@store');
And you can not!
If you use Route::any('guarda-terreno', 'TerrenoController@store');
it already registers all | GET|HEAD|POST|PUT|PATCH|DELETE |
methods when I only wanted POST!
What am I not seeing here?!