ok
Direktori : /home2/selectio/public_html/fms-worksuite/app/Observers/ |
Current File : /home2/selectio/public_html/fms-worksuite/app/Observers/LeaveSettingObserver.php |
<?php namespace App\Observers; use App\Models\LeaveSetting; class LeaveSettingObserver { public function creating(LeaveSetting $model) { if (company()) { $model->company_id = company()->id; } } }