Skip to content

Commit

Permalink
Release: version 1.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
anisAronno committed Apr 4, 2023
1 parent 05ee95e commit 8665055
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 5 deletions.
12 changes: 10 additions & 2 deletions Providers/StripeServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class StripeServiceProvider extends ServiceProvider
*/
public function register()
{
$this->registerConfig();
//
}

/**
Expand All @@ -39,6 +39,7 @@ public function register()

public function boot()
{
$this->registerConfig();
$this->registerAssets();
$this->registerViews();
$this->loadRoutesFrom(__DIR__.'/../Http/routes.php');
Expand Down Expand Up @@ -196,14 +197,21 @@ public function registerAssets()
], 'public');
}


/**
* Register translations.
*
* @return void
*/
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');
}
}

/**
Expand Down
2 changes: 1 addition & 1 deletion Resources/views/customer_fields_view.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
</div>
@endif
@empty
<p>{{__('No Invoice found')}}</p>
<p>{{ __('No Invoice found') }}</p>
@endforelse
</div>
</div>
Expand Down
5 changes: 4 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down Expand Up @@ -32,5 +32,8 @@
},
"require": {
"stripe/stripe-php": "^10.4"
},
"replace": {
"laravel/framework": "*"
}
}
2 changes: 1 addition & 1 deletion module.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 8665055

Please sign in to comment.