ok

Mini Shell

Direktori : /home2/selectio/public_html/fms-worksuite/app/Observers/
Upload File :
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;
        }
    }

}

Zerion Mini Shell 1.0