Post method in form working on local but when i clone the same code to the VM it is not working.
Route::get('AnswerType/Save','Admin\AnswerTypeController@store'); //route
{!! Form::open(['url' => '/master-data/AnswerType/', 'method'=>'POST', 'class' => 'form-horizontal']) !!} //form
public function store(Request $request) //controller
{
// validate
request()->validate([
'form.AnswerTypeName' => ['required', 'max:250'],
]);
// save
$security_group = AnswerType::create($request->form);
// msg
session()->flash('message-success', 'The Answer type was successfully created.');
// redirect
return redirect('/master-data/AnswerType/View');
}