From f6c4e45d576ff0117c39511af1da126bb16f2331 Mon Sep 17 00:00:00 2001 From: Fady Mondy Date: Wed, 30 Oct 2024 17:30:44 +0300 Subject: [PATCH] v2 --- README.md | 68 +------------------------------------------------------ 1 file changed, 1 insertion(+), 67 deletions(-) diff --git a/README.md b/README.md index f8fa1ca..62823a2 100644 --- a/README.md +++ b/README.md @@ -143,28 +143,6 @@ just allow `->useTypes()` on the plugin ) ``` -### Use Notifications - -you need to install [Filament Alerts](https://github.com/tomatophp/filament-alets) - -```bash -composer require tomatophp/filament-alerts -``` - -after that install alerts - -```bash -php artisan filament-alerts:install -``` - -and allow `->useNotifications()` on the plugin - -```php -->plugin(\TomatoPHP\FilamentAccounts\FilamentAccountsPlugin::make() - ->useNotifications() -) -``` - ## Show Address Field you can show or hide address field on the create or edit form by using this code @@ -196,7 +174,7 @@ use TomatoPHP\FilamentAccounts\Facades\FilamentAccounts; public function boot() { - FilamentAccounts::registerAccountRelation([ + FilamentAccounts::register([ AccountOrdersRelationManager::make() ]); } @@ -233,50 +211,6 @@ public static function table(Table $table): Table just pass the account id to the column -## Allow Teams Manager - -install jetstream without run install command. - -```bash -composer require laravel/jetstream -``` - -than publish the migrations - -```bash -php artisan vendor:publish --tag=filament-accounts-teams-migrations -``` - -now you need to migrate your database - -```bash -php artisan migrate -``` - -now publish your Accounts model - -```bash -php artisan vendor:publish --tag="filament-accounts-model" -``` - -inside your published model use this implementation - -```php -class Account extends Authenticatable implements HasMedia, FilamentUser, HasAvatar, HasTenants, HasDefaultTenant -{ - ... - use InteractsWithTenant; -} -``` - -on your main panel you must use teams - -```php -->plugin(\TomatoPHP\FilamentAccounts\FilamentAccountsPlugin::make() - ->useTeams() -) -``` - ### Use Filament Impersonate you can use the impersonate to impersonate the user by install it first