Skip to content
This repository was archived by the owner on Jul 27, 2022. It is now read-only.

Commit fb6de57

Browse files
committed
bugfix.
1 parent 8439884 commit fb6de57

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/TranslationServiceProvider.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,11 @@ protected function registerLoader()
5656
array_push($paths, base_path('resources/lang/'));
5757
}
5858

59-
return (new FileLoader($app['files'], $app['path.lang'], $paths))
60-
->addJsonPath($jsonPath);
59+
$loader = new FileLoader($app['files'], $app['path.lang'], $paths);
60+
61+
$loader->addJsonPath($jsonPath);
62+
63+
return $loader;
6164
});
6265
}
6366

0 commit comments

Comments
 (0)