diff --git a/src-php/Nova/Redirect.php b/src-php/Nova/Redirect.php index a8338cb..17bab69 100644 --- a/src-php/Nova/Redirect.php +++ b/src-php/Nova/Redirect.php @@ -59,7 +59,7 @@ public function fields(Request $request) Text::make('To')->rules('required', 'max:254')->sortable(), Number::make('Hits')->exceptOnForms()->sortable(), Date::make('Last Hit')->exceptOnForms()->sortable()->resolveUsing(function ($date) { - return $date->diffForHumans(); + return optional($date)->diffForHumans(); }), DateTime::make('Created At')->onlyOnDetail(), DateTime::make('Updated At')->onlyOnDetail(),