Releases: tomatophp/filament-accounts
v2.3.1
v2.3.0
v2.1.5
Allow Teams Manager
install jetstream without run install command.
composer require laravel/jetstream
than publish the migrations
php artisan vendor:publish --tag=filament-accounts-teams-migrations
now you need to migrate your database
php artisan migrate
now publish your Accounts model
php artisan vendor:publish --tag="filament-accounts-model"
inside your published model use this implementation
class Account extends Authenticatable implements HasMedia, FilamentUser, HasAvatar, HasTenants, HasDefaultTenant
{
...
use InteractsWithTenant;
}
on your main panel you must use teams
->plugin(\TomatoPHP\FilamentAccounts\FilamentAccountsPlugin::make()
->useTeams()
)
and on your app panel you must use this plugin
->plugin(\TomatoPHP\FilamentAccounts\FilamentAccountsSaaSPlugin::make()
->editTeam()
->deleteTeam()
->teamInvitation()
->showTeamMembers()
->allowTenants()
)
Full Changelog: v2.1.4...v2.1.5
v2.1.4
Full Changelog: v2.1.3...v2.1.4
v2.1.3
- add filament-plugins integration to convert the package to the module.
Full Changelog: v2.1.2...v2.1.3
v2.1.2
v2.1.1
Full Changelog: v2.1.0...v2.1.1
v2.1.0
- Add Dynamic Types For Account
- Add Dynamic Types For Account Requests
- Add Dynamic Types For Contact Us Status
- Use Export & Import Actions
- Use Account Locations on SaaS Panel
- Use Account Requests on SaaS Panel
- Use Account Contact Us on SaaS Panel
Use Export & Import Actions
before use Export & Import actions you need to install laravel excel package
composer require maatwebsite/excel
now on your main panel provider add ->useExport()
, ->useImport()
to the plugin
->plugin(\TomatoPHP\FilamentAccounts\FilamentAccountsPlugin::make()
...
->useExport()
->useImport()
)
Use Account Locations on SaaS Panel
you can make your account manage the locations by using this code
->plugin(
FilamentAccountsSaaSPlugin::make()
->canManageAddress()
)
it will add Edit Locations menu to the tenant menu and the accounts can manage there locations
Use Account Requests on SaaS Panel
you can manage account requests by using this code
use TomatoPHP\FilamentAccounts\Services\Contracts\AccountRequestForm;
->plugin(
FilamentAccountsSaaSPlugin::make()
->canManageRequests(form: [
AccountRequestForm::make('account_approve')
->schema([
TextInput::make('name')
->label('Name')
->required(),
]),
AccountRequestForm::make('account_verify')
->schema([
TextInput::make('id')
->label('ID')
->numeric()
->minLength(14)
->maxLength(14)
->required(),
])
])
->useTypes()
)
as you see you can select a form the every request type.
Use Account Contact Us on SaaS Panel
you can manage account contact us by using this code
->plugin(
FilamentAccountsSaaSPlugin::make()
->showContactUsButton()
)
or you can use it anywhere on your app by using the livewire component
@livewire('tomato-contact-us-form')
Full Changelog: v2.0.11...v2.1.0