my problem here in my code is I cannot store or insert array values in Database MySQL, here is my controller code please help me. thank you. My Code in Controller has no array or any so.. I dont have any clue how to turn it into array.
Controller
public function store(Request $request)
{
$this->validate($request,[
'city' => 'required'
]);
$citi = new City;
$citi->city = $request->input('city');
$citi->save();
return redirect('/lugar')->with('success', 'Data Inserted');
}
View
<td> {{Form::text('city[]', '', ['class' => 'form-control name_list', 'placeholder' => 'Add Country'])}} </td>