Skip to content

v2.1.0

Compare
Choose a tag to compare
@3x1io 3x1io released this 02 Sep 15:10
· 5 commits to master since this release
  • 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