diff --git a/Providers/StripeServiceProvider.php b/Providers/StripeServiceProvider.php index b23afad..9fd0051 100644 --- a/Providers/StripeServiceProvider.php +++ b/Providers/StripeServiceProvider.php @@ -28,7 +28,7 @@ class StripeServiceProvider extends ServiceProvider */ public function register() { - $this->registerConfig(); + // } /** @@ -39,6 +39,7 @@ public function register() public function boot() { + $this->registerConfig(); $this->registerAssets(); $this->registerViews(); $this->loadRoutesFrom(__DIR__.'/../Http/routes.php'); @@ -196,6 +197,7 @@ public function registerAssets() ], 'public'); } + /** * Register translations. * @@ -203,7 +205,13 @@ public function registerAssets() */ public function registerTranslations() { - $this->loadJsonTranslationsFrom(__DIR__ .'/../Resources/lang'); + $langPath = resource_path('lang/modules/stripe'); + + if (is_dir($langPath)) { + $this->loadTranslationsFrom($langPath, 'stripe'); + } else { + $this->loadTranslationsFrom(__DIR__ .'/../Resources/lang', 'stripe'); + } } /** diff --git a/Resources/views/customer_fields_view.blade.php b/Resources/views/customer_fields_view.blade.php index 7bfee73..3cbe7e0 100644 --- a/Resources/views/customer_fields_view.blade.php +++ b/Resources/views/customer_fields_view.blade.php @@ -47,7 +47,7 @@ @endif @empty -

{{__('No Invoice found')}}

+

{{ __('No Invoice found') }}

@endforelse diff --git a/composer.json b/composer.json index 66ee3c2..65693ce 100644 --- a/composer.json +++ b/composer.json @@ -1,7 +1,7 @@ { "name": "wedevs_official/laravel_freescout_stripe_module", "description": "Freescout stripe modules", - "version": "1.0.1", + "version": "1.0.2", "keywords": [ "helpdesk", "help desk", @@ -32,5 +32,8 @@ }, "require": { "stripe/stripe-php": "^10.4" + }, + "replace": { + "laravel/framework": "*" } } diff --git a/module.json b/module.json index 06ef468..c6d9b56 100644 --- a/module.json +++ b/module.json @@ -2,7 +2,7 @@ "name": "Stripe", "alias": "stripe", "description": "Show customer's stripe data.", - "version": "1.0.0", + "version": "1.0.2", "detailsUrl": "https://github.com/weDevsOfficial/Laravel-FreeScout-Stripe-Module", "author": "Tareq Hasan", "authorUrl": "https://github.com/tareq1988",