-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c601fb0
commit 5570699
Showing
13 changed files
with
116 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
# Upgrade Guide | ||
|
||
## Upgrading from FilamentCompanies 3.x to 4.x | ||
|
||
This major release introduces significant changes designed to streamline the usage of FilamentCompanies. Here’s how to migrate your project from 3.x to 4.x. | ||
|
||
### Breaking Changes | ||
|
||
1. Removal of Classes: | ||
- `Wallo\FilamentCompanies\Features` | ||
- `Wallo\FilamentCompanies\Providers` | ||
- `Wallo\FilamentCompanies\Socialite` | ||
|
||
2. Introduction of Enums: | ||
- Functionality previously available through the `Providers` class has been replaced by the `Wallo\FilamentCompanies\Enums\Provider` enum. | ||
- Some functionality previously available through the `Socialite` class has been replaced by the `Wallo\FilamentCompanies\Enums\Feature` enum. | ||
|
||
3. Removal of the `MakeUserCommand` command. | ||
- It isn't necessary and was removed to simplify the package. | ||
|
||
### Migration Steps | ||
|
||
For Socialite providers, replace the usage of the `Wallo\FilamentCompanies\Providers` class with the `Wallo\FilamentCompanies\Enums\Provider` enum. | ||
|
||
Before: | ||
|
||
```php | ||
|
||
use Wallo\FilamentCompanies\Providers; | ||
|
||
// Enable the following Socialite providers. | ||
Providers::github(), | ||
// And so on for the other providers... | ||
|
||
// Determine if the following Socialite providers are enabled. | ||
Providers::hasGithub(), | ||
// And so on for the other providers... | ||
``` | ||
|
||
After: | ||
|
||
```php | ||
|
||
use Wallo\FilamentCompanies\Enums\Provider; | ||
|
||
// Enable the following Socialite providers. | ||
Provider::Github, | ||
// And so on for the other providers... | ||
|
||
// Determine if the following Socialite providers are enabled. | ||
Provider::Github->isEnabled(), | ||
// And so on for the other providers... | ||
|
||
``` | ||
|
||
For Socialite features, replace the usage of the `Wallo\FilamentCompanies\Socialite` class with the `Wallo\FilamentCompanies\Enums\Feature` enum. | ||
|
||
Before: | ||
|
||
```php | ||
|
||
use Wallo\FilamentCompanies\Socialite; | ||
|
||
// Enable the following features. | ||
Socialite::rememberSession(), | ||
// And so on for the other features... | ||
|
||
// Determine if the following features are enabled. | ||
Socialite::hasRememberSessionFeature(), | ||
// And so on for the other features... | ||
|
||
``` | ||
|
||
After: | ||
|
||
```php | ||
|
||
use Wallo\FilamentCompanies\Enums\Feature; | ||
|
||
// Enable the following features. | ||
Feature::RememberSession, | ||
// And so on for the other features... | ||
|
||
// Determine if the following features are enabled. | ||
Feature::RememberSession->isEnabled(), | ||
// And so on for the other features... | ||
``` | ||
|
||
### Important Notes | ||
> The rest of the methods previously available in the `Socialite` and `Features` classes are still available and were moved to the main `Wallo\FilamentCompanies\FilamentCompanies` class. | ||
### Further Assistance | ||
Should you encounter any issues during the upgrade process, please don’t hesitate to reach out Discord or by creating a new Discussion on GitHub. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -57,5 +57,4 @@ public static function canManageConnectedAccounts(): bool | |
{ | ||
return static::$canManageConnectedAccounts; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters