From 75280e4fedb4218a83e69a0f481c883d0219000c Mon Sep 17 00:00:00 2001 From: Bert Wijnhoven Date: Tue, 5 Mar 2024 16:11:34 +0100 Subject: [PATCH 1/4] never use spa mode for oauth links + spacing --- composer.json | 2 +- resources/views/components/buttons.blade.php | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 9cfc800..9416c21 100644 --- a/composer.json +++ b/composer.json @@ -27,7 +27,7 @@ ], "require": { "php": "^8.1", - "filament/filament": "^3.0.9", + "filament/filament": "^3.2.44", "illuminate/contracts": "^10.0", "laravel/socialite": "^5.5", "spatie/laravel-package-tools": "^1.9.2" diff --git a/resources/views/components/buttons.blade.php b/resources/views/components/buttons.blade.php index 4bdfce6..8333887 100644 --- a/resources/views/components/buttons.blade.php +++ b/resources/views/components/buttons.blade.php @@ -1,4 +1,4 @@ -
+
@if ($messageBag->isNotEmpty()) @foreach($messageBag->all() as $value)

{{ __($value) }}

@@ -23,6 +23,7 @@ :icon="$provider['icon'] ?? null" tag="a" :href="route($socialiteRoute, $key)" + :spa-mode="false" > {{ $provider['label'] }} From 4e07d4a0796f3512ef412d350bce1a9712590845 Mon Sep 17 00:00:00 2001 From: Bert Wijnhoven Date: Tue, 5 Mar 2024 17:25:10 +0100 Subject: [PATCH 2/4] Make version update optional --- README.md | 9 +++++---- composer.json | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 33997d6..df8dfb1 100644 --- a/README.md +++ b/README.md @@ -14,10 +14,11 @@ Add OAuth2 login through Laravel Socialite to Filament. OAuth1 (eg. Twitter) is ## Installation -| Filament version | Package version | -|------------------|-----------------| -| 3.x | 1.x.x | -| 2.x | 0.x.x | +| Filament version | Package version | +|---------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------| +| [^3.2.44](https://github.com/filamentphp/filament/releases/tag/v3.2.44) (if using [SPA mode](https://filamentphp.com/docs/3.x/panels/configuration#spa-mode)) | 1.x.x | +| 3.x | 1.x.x | +| 2.x | 0.x.x | Install the package via composer: diff --git a/composer.json b/composer.json index 9416c21..9cfc800 100644 --- a/composer.json +++ b/composer.json @@ -27,7 +27,7 @@ ], "require": { "php": "^8.1", - "filament/filament": "^3.2.44", + "filament/filament": "^3.0.9", "illuminate/contracts": "^10.0", "laravel/socialite": "^5.5", "spatie/laravel-package-tools": "^1.9.2" From 26b1b2ebd35fb438cf41d7c023f4d4ef40713d54 Mon Sep 17 00:00:00 2001 From: Bert Wijnhoven Date: Tue, 5 Mar 2024 17:28:38 +0100 Subject: [PATCH 3/4] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index df8dfb1..8982741 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ Add OAuth2 login through Laravel Socialite to Filament. OAuth1 (eg. Twitter) is | Filament version | Package version | |---------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------| -| [^3.2.44](https://github.com/filamentphp/filament/releases/tag/v3.2.44) (if using [SPA mode](https://filamentphp.com/docs/3.x/panels/configuration#spa-mode)) | 1.x.x | +| [^3.2.44](https://github.com/filamentphp/filament/releases/tag/v3.2.44) (if using [SPA mode](https://filamentphp.com/docs/3.x/panels/configuration#spa-mode)) | 1.3.1 | | 3.x | 1.x.x | | 2.x | 0.x.x | From 3509ca56ca67be6e573cb4281e55eb4946d5e7bb Mon Sep 17 00:00:00 2001 From: Bert Wijnhoven Date: Tue, 5 Mar 2024 17:38:28 +0100 Subject: [PATCH 4/4] version range --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 8982741..f5aa91e 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ Add OAuth2 login through Laravel Socialite to Filament. OAuth1 (eg. Twitter) is | Filament version | Package version | |---------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------| -| [^3.2.44](https://github.com/filamentphp/filament/releases/tag/v3.2.44) (if using [SPA mode](https://filamentphp.com/docs/3.x/panels/configuration#spa-mode)) | 1.3.1 | +| [^3.2.44](https://github.com/filamentphp/filament/releases/tag/v3.2.44) (if using [SPA mode](https://filamentphp.com/docs/3.x/panels/configuration#spa-mode)) | ^1.3.1 | | 3.x | 1.x.x | | 2.x | 0.x.x |