created_by === null) { $report->created_by = Auth::id(); } } public function created(DisciplinaryReport $report): void { Notification::send( User::role('hr_manager')->get(), new DisciplinaryReportCreatedNotification($report), ); } }