Skip to content

Commit

Permalink
Merge pull request #7 from mra-dev/mra-dev-laravel-9--patch
Browse files Browse the repository at this point in the history
Modify publish path for lang files (Laravel 9)
  • Loading branch information
sadegh19b authored Jun 21, 2022
2 parents e360847 + 9fe1339 commit 113c038
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/PersianValidationServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ class PersianValidationServiceProvider extends ServiceProvider
public function boot()
{
$vendorLangPath = $langLoaderPath = __DIR__.'/../lang/';
$resourceLangPath = resource_path('lang/');
// In Laravel 9+, lang files are in root path of app.
$baseLangPath = base_path('lang/');
$langFileName = 'persian-validation';
$langNamespace = 'sbpValidation';

Expand Down

0 comments on commit 113c038

Please sign in to comment.