芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/portpulselogistics.com/Modules/Cargo/Entities/ClientAddress.php
addMediaConversion('preview')->fit(Manipulations::FIT_CROP, 300, 300)->nonQueued(); } static public function getClientAddresses($query , $request = null){ $user_role = auth()->user()->role; if(isset($user_role)){ if($user_role == 4){ $user = Client::where('user_id',auth()->user()->id)->pluck('id')->first(); $query = $query->where('client_id', $user); } } return $query; } public function country(){ return $this->hasOne('Modules\Cargo\Entities\Country', 'id', 'country_id'); } public function area(){ return $this->hasOne('Modules\Cargo\Entities\Area', 'id', 'area_id'); } public function state(){ return $this->hasOne('Modules\Cargo\Entities\State', 'id', 'state_id'); } }