芝麻web文件管理V1.00
编辑当前文件:/home/digitalh/yeahea.digitalhubbd.com/app/Models/AttributeValue.php
belongsTo(Attribute::class); } /** * Get the inventories for the supplier. */ public function inventories() { return $this->belongsToMany(Inventory::class, 'attribute_inventory') ->withPivot('attribute_id') ->withTimestamps(); } /** * Scope a query to only include records from the users shop. * * @return \Illuminate\Database\Eloquent\Builder */ public function scopeMine($query) { return $query->where('shop_id', Auth::user()->merchantId()); } }