I using the laravel framework of php for development.I done these following steps
I define
Route::resource('users', 'UsersController');in route file and then defineRoute::get('user/pingme', 'UserController@pingme');When i make a get call to pingme function, it was not working .I was getting the
response code is 200but code inside thatpingmefunction was not working and i do not know why.then i changed it to
Route::post('user/pingme', 'UserController@pingme');it was working fine as needed.then what i did is, removed
Route::resource('users', 'UsersController');and make again get route to ping me function and make get call and it starts working fine .
so this is any bug in framework(rare thing) or i am missing something(probably yes)? Help me out....
Route::resource()in this case? It's only used together with Resource Controllers.composer dump-autoloadafter changing theroutes.phpfile ?