I get this issue when I submit a post form
Symfony \ Component \ HttpKernel \ Exception \ MethodNotAllowedHttpException No message
I have been reading about this issue and most people said that the route should be changed to post which I have from the start and I am getting this error
web.php:
Route::post('/new-trade/submit', 'NewTradesController@submit');
Controller:
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
class NewTradesController extends Controller
{
public function submit(Request $request){
return 123;
}
}
Form:
{!! Form::open(['class' => 'needs-validation', 'novalidate', 'id' => 'new-trade-form', 'method' => 'post', 'files' => true]) !!}