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