ok

Mini Shell

Direktori : /home2/selectio/public_html/fms-worksuite/app/Observers/
Upload File :
Current File : /home2/selectio/public_html/fms-worksuite/app/Observers/RoleObserver.php

<?php

namespace App\Observers;

use App\Models\Role;

class RoleObserver
{

    public function saving(Role $role)
    {
        if (company()) {
            $role->company_id = company()->id;
        }
    }

}

Zerion Mini Shell 1.0