diff --git a/src/NilPortugues/Laravel5/JsonApi/Laravel5JsonApiServiceProvider.php b/src/NilPortugues/Laravel5/JsonApi/Laravel5JsonApiServiceProvider.php index d326107..8938203 100644 --- a/src/NilPortugues/Laravel5/JsonApi/Laravel5JsonApiServiceProvider.php +++ b/src/NilPortugues/Laravel5/JsonApi/Laravel5JsonApiServiceProvider.php @@ -43,7 +43,7 @@ public function register() $this->mergeConfigFrom(__DIR__.self::PATH, 'jsonapi'); $version = '5.0.0'; - if (class_exists(self::LARAVEL_APPLICATION)) { + if (class_exists(self::LARAVEL_APPLICATION, true)) { $class = self::LARAVEL_APPLICATION; $version = $class::VERSION; }