I'm kinda new on Laravel. I have created some routes for GET and POST, but the only working fine is the GET ones. The POST ones always returns TokenMismatchException, even though the process inside and the database query is executed properly. Some of the questions I saw on SO usually talking about AJAX, and the solution involves sending token. But I don't use any AJAX... yet, and usually the answers said that if I use an ordinary POST form, Laravel will insert a hidden token.
Here's the routes code:
Route::post('/practice/{level_id?}/{group_id?}/{command?}', 'WebController@practice');
Route::get('/practice/{level_id?}/{group_id?}/{command?}', 'WebController@practice');
And here's how I receive it on the webcontroller:
public function practice($level_id = "", $group_id = "", $command = "")
Is there something wrong? What could possibly makes my POST request fail? Thanks.