/
home
/
sditechnicalteam
/
www
/
app
/
Traits
/
File Upload :
llllll
Current File: //home/sditechnicalteam/www/app/Traits/HasCompany.php
<?php namespace App\Traits; use App\Models\Company; use App\Scopes\CompanyScope; use Illuminate\Database\Eloquent\Relations\BelongsTo; trait HasCompany { protected static function booted() { static::addGlobalScope(new CompanyScope()); } public function company(): BelongsTo { return $this->belongsTo(Company::class); } }
Copyright ©2k19 -
Hexid
|
Tex7ure