I dont know receive data by post in my laravel application.
I already build the function to receive by GET, but, i think via post would be better.
How can I do? Is the same as normal PHP?
Thx
I dont know receive data by post in my laravel application.
I already build the function to receive by GET, but, i think via post would be better.
How can I do? Is the same as normal PHP?
Thx
Similar to GET
In your Router add a route:
Route::post('home/doStuff/{withSomeParam}', 'YourController@doStuff');
Then in YourController controller:
public function doStuff($someParamId, Request $request){
... do something awesome with someParamId
return redirect('home');
}
And you are done =]