/
home
/
henzagold
/
server
/
app
/
Models
/
File Upload :
llllll
Current File: /home/henzagold/server/app/Models/InventoryBranch.php
<?php namespace App\Models; use App\DB\Selector; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\SoftDeletes; class InventoryBranch extends Model { use HasFactory,SoftDeletes,Selector; protected $fillable = [ 'branch_id', 'allocator_user_id', 'count_item', 'sum_weight', 'name' ]; public function allocator_user() { return $this->belongsTo(User::class,'allocator_user_id'); } public function branch() { return $this->belongsTo(Branch::class); } public function product() { return $this->hasMany(Product::class,'inventory_id'); } }
Copyright ©2k19 -
Hexid
|
Tex7ure