In Laravel we use routes to deal with HTTP requests from the browser.
We can route a request to a controller, do some logic and then return a response.
Now, we can send in variables encapsulated with braces {}
and the response can be anything, so it seems to me that routing through a controller means that the the properties of the different request methods (POST, GET, PUT etc.) are lost.
For example I could send a POST request with URI example/{id}
then put in my routes.php
file
Route::post('example/{id}','SomeController@SomeAction');
Then I could do something in my controller with the variable $id
and send a response.
On the other hand I could send a GET request with URI example/{id}
and alter my route to
Route::get('example/{id}','SomeController@SomeAction');
The controller would give the same response.
So, am I right in thinking it does not really matter what request method is used?