Skip to content

Commit

Permalink
Merge branch 'release/4.3.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
kristofser committed Mar 13, 2024
2 parents 6fda88a + e29474a commit f889702
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 11 deletions.
4 changes: 4 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# Changelog

All notable changes to `GoogleAuthenticator` will be documented in this file.

## Version 4.3.0
- Added support for Laravel 11
- Updated group names for publishing config/views/etc
## Version 4.2.0
- Added support for Laravel 10
- Added return types
Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@
"homepage": "https://github.com/statikbe/laravel-google-authenticate",
"keywords": ["Laravel", "google", "authenticate", "socialite"],
"require": {
"illuminate/support": "^9.0|^10.0",
"illuminate/routing": "^9.0|^10.0",
"illuminate/support": "^9.0|^10.0|^11.0",
"illuminate/routing": "^9.0|^10.0|^11.0",
"laravel/socialite": "^5.6"
},
"suggest": {
"doctrine/dbal": "If you are using the provided migration you will need doctrine/dbal."
"doctrine/dbal": "If you are using the provided migration you will need doctrine/dbal. You won't need this in Laravel versions >= 11"
},
"autoload": {
"psr-4": {
Expand Down
8 changes: 4 additions & 4 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ The package will automatically register itself.

You can publish the migration with the following command:
``` shell
php artisan vendor:publish --provider="Statikbe\GoogleAuthenticate\GoogleAuthenticateServiceProvider" --tag="migrations"
php artisan vendor:publish --provider="Statikbe\GoogleAuthenticate\GoogleAuthenticateServiceProvider" --tag="google-migrations"
```

To add the needed columns to your database run:
Expand Down Expand Up @@ -65,7 +65,7 @@ Finally, you can add google login route to your login and register views: `{{ ro
Publish the config file

```bash
php artisan vendor:publish --provider="Statikbe\\GoogleAuthenticate\\GoogleAuthenticateServiceProvider" --tag="config"
php artisan vendor:publish --provider="Statikbe\\GoogleAuthenticate\\GoogleAuthenticateServiceProvider" --tag="google-config"
```

#### Email domains
Expand Down Expand Up @@ -112,11 +112,11 @@ For example in your config:
## Publishing
You can publish the views and translations files using:
``` shell
php artisan vendor:publish --provider="Statikbe\\GoogleAuthenticate\\GoogleAuthenticateServiceProvider" --tag="views"
php artisan vendor:publish --provider="Statikbe\\GoogleAuthenticate\\GoogleAuthenticateServiceProvider" --tag="google-views"
```
and
``` shell
php artisan vendor:publish --provider="Statikbe\\GoogleAuthenticate\\GoogleAuthenticateServiceProvider" --tag="lang"
php artisan vendor:publish --provider="Statikbe\\GoogleAuthenticate\\GoogleAuthenticateServiceProvider" --tag="google-lang"
```

## Security
Expand Down
8 changes: 4 additions & 4 deletions src/GoogleAuthenticateServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public function boot(): void

$this->publishes([
__DIR__ . '/../database/migrations/add_google_provider_to_user_table.php.stub' => database_path('migrations/' . date('Y_m_d_His', time()) . '_add_google_provider_to_user_table.php'),
], 'migrations');
], 'google-migrations');

//loaders
$this->loadRoutesFrom(__DIR__ . '/routes.php');
Expand Down Expand Up @@ -67,7 +67,7 @@ protected function bootForConsole(): void
// Publishing the views
$this->publishes([
__DIR__ . '/../resources/views' => resource_path('views/vendor/google-authenticate'),
], 'views');
], 'google-views');

//publish the translations
$langPath = 'vendor/google-authenticate';
Expand All @@ -76,11 +76,11 @@ protected function bootForConsole(): void
: resource_path('lang/' . $langPath);
$this->publishes([
__DIR__ . '/../resources/lang' => $langPath,
], 'lang');
], 'google-lang');

//publishes config file
$this->publishes([
__DIR__ . '/config/google-authenticate.php' => config_path('google-authenticate.php'),
], 'config');
], 'google-config');
}
}

0 comments on commit f889702

Please sign in to comment.