ok
Direktori : /home2/selectio/public_html/fms-worksuite/app/Observers/ |
Current File : /home2/selectio/public_html/fms-worksuite/app/Observers/ProjectMilestoneObserver.php |
<?php namespace App\Observers; use App\Models\ProjectMilestone; class ProjectMilestoneObserver { public function saving(ProjectMilestone $projectMilestone) { if (!isRunningInConsoleOrSeeding()) { $projectMilestone->last_updated_by = user()->id; } } public function creating(ProjectMilestone $projectMilestone) { if (!isRunningInConsoleOrSeeding()) { $projectMilestone->added_by = user()->id; } } }