Skip to content

Commit

Permalink
lang_path not working in laravel 7
Browse files Browse the repository at this point in the history
  • Loading branch information
NafezlyDotCom committed Dec 2, 2022
1 parent 11cb4e7 commit a9c1488
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/NafezlyPaymentsServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public function boot()
__DIR__ . '/../config/nafezly-payments.php' => config_path('nafezly-payments.php'),
]);
$this->publishes([
__DIR__ . '/../resources/lang' => app()->getLocale('vendor/payments'),
__DIR__ . '/../resources/lang' => resource_path('lang/vendor/payments'),
]);
}

Expand Down Expand Up @@ -105,7 +105,7 @@ protected function registerPublishing()
__DIR__ . '/../config/nafezly-payments.php' => config_path('nafezly-payments.php'),
], 'nafezly-payments-config');
$this->publishes([
__DIR__ . '/../resources/lang' => app()->getLocale('vendor/payments'),
__DIR__ . '/../resources/lang' => resource_path('lang/vendor/payments'),
], 'nafezly-payments-lang');
$this->publishes([
__DIR__ . '/../resources/views' => resource_path('views/vendor/payments'),
Expand Down

0 comments on commit a9c1488

Please sign in to comment.