<?php namespace App; use Illuminate\Database\Eloquent\Model; class InventoryTweak extends Model { public function product(){ return $this->belongsTo(Product::class)->withTrashed(); } public function user(){ return $this->belongsTo(User::class); } public function inventory_movement_type(){ return $this->belongsTo(InventoryMovementType::class); } }