ok

Mini Shell

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

<?php

namespace App\Observers;

use App\Models\NoticeView;

class NoticeViewObserver
{

    public function creating(NoticeView $noticeView)
    {
        if (company()) {
            $noticeView->company_id = company()->id;
        }
    }

}

Zerion Mini Shell 1.0