'required|exists:users,id', ]; public function consumable() { return $this->belongsTo(\App\Models\Consumable::class); } public function user() { return $this->belongsTo(\App\Models\User::class, 'assigned_to'); } public function adminuser() { return $this->belongsTo(\App\Models\User::class, 'created_by'); } }