Skip to content

Commit a9c1488

Browse files
committed
lang_path not working in laravel 7
1 parent 11cb4e7 commit a9c1488

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/NafezlyPaymentsServiceProvider.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function boot()
3737
__DIR__ . '/../config/nafezly-payments.php' => config_path('nafezly-payments.php'),
3838
]);
3939
$this->publishes([
40-
__DIR__ . '/../resources/lang' => app()->getLocale('vendor/payments'),
40+
__DIR__ . '/../resources/lang' => resource_path('lang/vendor/payments'),
4141
]);
4242
}
4343

@@ -105,7 +105,7 @@ protected function registerPublishing()
105105
__DIR__ . '/../config/nafezly-payments.php' => config_path('nafezly-payments.php'),
106106
], 'nafezly-payments-config');
107107
$this->publishes([
108-
__DIR__ . '/../resources/lang' => app()->getLocale('vendor/payments'),
108+
__DIR__ . '/../resources/lang' => resource_path('lang/vendor/payments'),
109109
], 'nafezly-payments-lang');
110110
$this->publishes([
111111
__DIR__ . '/../resources/views' => resource_path('views/vendor/payments'),

0 commit comments

Comments
 (0)