Skip to content

Commit

Permalink
Update PackageServiceProvider.php
Browse files Browse the repository at this point in the history
  • Loading branch information
wamesro authored May 4, 2023
1 parent fa6c0d3 commit a945e35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PackageServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class PackageServiceProvider extends ServiceProvider
*/
public function boot()
{
if ($this->app->runningInConsole()) {
if ($this->app->runningInConsole() && !$this->app->environment('production')) {
Helpers::copyDir(__DIR__ . '/../resources/lang/', resource_path('lang'));

$this->loadJSONTranslationsFrom(resource_path('lang'));
Expand Down

0 comments on commit a945e35

Please sign in to comment.