Hi guys i am working with laravel 5.7 while inserting data im getting issue of "Data Missing" but the data is inserting as well but still getting error here im sharing part of my code
Model
public function setApplicationDateAttribute($input)
{
if($input != '') {
$this->attributes['application_date'] = Carbon::createFromFormat(config('quickadmin.date_format'), $input)->format('Y-m-d');
}else{
$this->attributes['application_date'] = '';
}
}
this is the funtion which is checking the date format for input data Now this is a file in my config folder named quickadmin i will show you the code of it
return [
/**
* Datepicker configuration:
*/
'date_format' => 'Y-m-d',
'date_format_jquery' => 'yy-mm-dd',
'time_format' => 'H:i:s',
'time_format_jquery' => 'HH:mm:ss',
/**
* Quickadmin settings
*/
'route' => 'admin',
'homeRoute' => 'admin',
'defaultRole' => 1];
Now here is the code of Controller
$locumApplications = ModelName::create([
'user_id' => $request->user_id,
'locum_id' => $request->locum_id,
'application_date' => $request->application_date
]);
it insert the data but give me error and if i remove the line 'application_date' => $request->application_date it still show me the error
