Skip to content

Commit

Permalink
Merge branch 'release/4.1.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
Kobe committed Mar 24, 2022
2 parents d221ca6 + 3e0b6d2 commit 22e8486
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/GoogleAuthenticateServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,16 @@ protected function bootForConsole()
{
// Publishing the views
$this->publishes([
__DIR__.'/../resources/views' => base_path('resources/views/vendor/google-authenticate'),
__DIR__.'/../resources/views' => resource_path('views/vendor/google-authenticate'),
], 'views');

//publish the translations
$langPath = 'vendor/google-authenticate';
$langPath = (function_exists('lang_path'))
? lang_path($langPath)
: resource_path('lang/'.$langPath);
$this->publishes([
__DIR__.'/../resources/lang' => resource_path('lang/vendor/google-authenticate'),
__DIR__.'/../resources/lang' => $langPath,
], 'lang');

//publishes config file
Expand Down

0 comments on commit 22e8486

Please sign in to comment.