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