/** * Get the current shop the user owns * * @return \Illuminate\Routing\Route|null|object|string */ function shop() { return shopResolver()->shop; }
/** * @return Shop|null */ protected function shop() { return $this->shop ?: ($this->shop = shopResolver()->shop); }