Im using Morilog\Jalali package
I have datepicker input that The output like this: 1400/08/01
I want to convert this to gregorian and insert that to database
My database field is datetime My Controller Store method is this:
Panelfile::create([
'title' => $request->title,
'color' => $request->color,
'expiration' => \morilog\Jalali\CalendarUtils::createCarbonFromFormat('Y/m/d', $request->expiration),
]);
But i have this error: Undifine index:year
How solve that?