I used a function to get current datetime
protected function getCurrentDate()
{
$now = Carbon::now();
return $now->toDateTimeString('');
}
However I get an error.
Carbon\Exceptions\UnitException
Precision unit expected among: minute, second, millisecond and microsecond.
Any ideas how to get the time in a format like day.month.Year Hour:minute