This question already has an answer here:
My view is like this :
{!! Form::open(['route' => ['users.store.year.month', $year, $month]]) !!}
@include('users.fields')
{!! Form::close() !!}
My route is like this :
Route::get('users/store/{year}/{month}', 'UserController@store')
->name('users.store.year.month');
My controller is like this :
public function store(CreateTunkinRequest $request, $thang, $month)
{
...
return redirect(route('users.proses', ['month' => $month, 'year' => $year]));
}
When I input data and save, there exist error like this :
MethodNotAllowedHttpException in RouteCollection.php line 218:
How can I solve it?
</div>