hasMany(Product::class); } public function items() { return $this->belongsToMany(Item::class); } /** * Return the logged in user * * @return \App\User */ public static function loggedIn() { return (new static)->findOrFail(\Auth::id()); } }