I'm trying to persist data from the client to my database and I have a trouble with the timestamp.
public function post(UpdateRequest $request){
$update = new UpdateEvent();
$update->src = $request->get('src');
$update->title = $request->get('title');
$update->sapo = $request->get('description');
$update->created_at = $request->get('created_at');
$update->img = $request->get('image');
$update->save();
return view('update.notification');
}
I'm getting the following exception:
InvalidArgumentException in Carbon.php line 582:
Unexpected data found.
Trailing data
Can you help me?