The expression return App\Models\User::...rt\Facades\Auth::user() could return the type null which is incompatible with the type-hinted return App\Models\User. Consider adding an additional type-check to rule them out.
Loading history...
49
}
50
51
/**
52
* Return "schedule_date" value from the request.
53
*
54
* @param string $key
55
* @return \Illuminate\Support\Carbon
56
*/
57
public function getScheduleDate(string $key = 'schedule_date'): Carbon