芝麻web文件管理V1.00
编辑当前文件:/home/sditechnicalteam/public_html/app/Observers/TaskCommentObserver.php
last_updated_by = user()->id; } } public function creating(TaskComment $comment) { if (!isRunningInConsoleOrSeeding()) { $comment->added_by = user()->id; } } public function created(TaskComment $comment) { if (isRunningInConsoleOrSeeding()) { return true; } $task = $comment->task; if ($task->project_id != null) { if ($task->project->client_id != null && $task->project->allow_client_notification == 'enable') { event(new TaskCommentEvent($task, $comment, $task->project->client, 'client')); } } event(new TaskCommentEvent($task, $comment, $task->users)); } }