From 0be033be3ae66739db3349d2dc64ce6d6fd8113e Mon Sep 17 00:00:00 2001 From: Tiago Fernandes Date: Tue, 22 Aug 2023 15:29:45 +0100 Subject: [PATCH] fix lang dir --- composer.json | 57 ++++++++++++++++------------- src/LocalizationServiceProvider.php | 4 +- 2 files changed, 33 insertions(+), 28 deletions(-) diff --git a/composer.json b/composer.json index 1c238ac..0f8a7cf 100644 --- a/composer.json +++ b/composer.json @@ -1,29 +1,34 @@ { - "name": "square-bit/laravel-pt-localization", - "description": "Portuguese Localization package for Laravel", - "license": "MIT", - "authors": [ - { - "name": "Squarebit", - "email": "info@square-bit.com", - "homepage": "https://square-bit.com/" - } - ], - "homepage": "https://github.com/square-bit/laravel-pt-localization", - "keywords": ["laravel", "localization", "portuguese", "translations"], - "require": { - "laravel/framework": "^8.0|^9.0|^10.0" - }, - "autoload": { - "psr-4": { - "Squarebit\\Laravelptlocalization\\": "src/" - } - }, - "extra": { - "laravel": { - "providers": [ - "Squarebit\\Laravelptlocalization\\LocalizationServiceProvider" - ] - } + "name": "square-bit/laravel-pt-localization", + "description": "Portuguese Localization package for Laravel", + "license": "MIT", + "authors": [ + { + "name": "Squarebit", + "email": "info@square-bit.com", + "homepage": "https://square-bit.com/" } + ], + "homepage": "https://github.com/square-bit/laravel-pt-localization", + "keywords": [ + "laravel", + "localization", + "portuguese", + "translations" + ], + "require": { + "laravel/framework": "^10.0" + }, + "autoload": { + "psr-4": { + "Squarebit\\Laravelptlocalization\\": "src/" + } + }, + "extra": { + "laravel": { + "providers": [ + "Squarebit\\Laravelptlocalization\\LocalizationServiceProvider" + ] + } + } } diff --git a/src/LocalizationServiceProvider.php b/src/LocalizationServiceProvider.php index 1dbd8bd..f225034 100644 --- a/src/LocalizationServiceProvider.php +++ b/src/LocalizationServiceProvider.php @@ -15,8 +15,8 @@ class LocalizationServiceProvider extends ServiceProvider public function boot(): void { $this->publishes([ - __DIR__.'/../resources/lang/pt.json' => resource_path('lang/pt.json'), - __DIR__.'/../resources/lang/pt' => resource_path('lang/pt'), + __DIR__.'/../resources/lang/pt.json' => base_path('lang/pt.json'), + __DIR__.'/../resources/lang/pt' => base_path('lang/pt'), ], 'laravel-pt-localization'); } }