<?php namespace App; use Illuminate\Database\Eloquent\Model; class Inventory extends Model { protected $guarded = ['id','created_at','updated_at']; public function item() { return $this->belongsTo(Item::class); } public function storage() { return $this->belongsTo(Storage::class); } public function location() { return $this->belongsTo(Location::class); } }