From 40004b2a3d77dfb1854121cbd59b9c057ec3c72d Mon Sep 17 00:00:00 2001 From: Yoram Date: Sun, 11 Apr 2021 20:56:21 +0200 Subject: [PATCH] Without realpath this will work Currently working on a project (with Laravel) that requires to be bundled in a Phar. The realpath is [not working within the Phar setup](https://www.php.net/manual/en/function.realpath.php#refsect1-function.realpath-returnvalues). This change will allow to work properly even with using a the relative path. --- src/Providers/LaravelServiceProvider.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Providers/LaravelServiceProvider.php b/src/Providers/LaravelServiceProvider.php index 46e406c62..f685bbabc 100644 --- a/src/Providers/LaravelServiceProvider.php +++ b/src/Providers/LaravelServiceProvider.php @@ -21,7 +21,7 @@ class LaravelServiceProvider extends AbstractServiceProvider */ public function boot() { - $path = realpath(__DIR__.'/../../config/config.php'); + $path = __DIR__.'/../../config/config.php'; $this->publishes([$path => config_path('jwt.php')], 'config'); $this->mergeConfigFrom($path, 'jwt');