diff --git a/src/Repositories/BaseRepository.php b/src/Repositories/BaseRepository.php index b0df753..01ce712 100644 --- a/src/Repositories/BaseRepository.php +++ b/src/Repositories/BaseRepository.php @@ -274,7 +274,7 @@ public function setContainer(Container $container) */ public function getContainer($service = null) { - return is_null($service) ? ($this->container ?: app()) : ($this->container[$service] ?: app($service)); + return is_null($service) ? ($this->container ?: app()) : ($this->container[$service] ?? app($service)); } /**