Download the PHP package tomatophp/filament-accounts without Composer
On this page you can find all versions of the php package tomatophp/filament-accounts. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package filament-accounts
Filament Accounts Builder
full accounts manager with API/Notifications/Contacts to manage your contacts and accounts
Screenshots
Features
- [x] Accounts Manager
- [x] Cached Meta
- [x] Account Locations
- [x] Account Teams
- [x] Account Types
- [x] Account Requests
- [x] Account SaaS Panel With Edit Profile [Jetstream]
- [x] Account Login By
- [x] Account Active/Block
- [x] Account Avatar
- [x] Account OTP Activation
- [x] Account Filament Alerts Integration
- [x] Account Impersonate Integration
- [x] Account APIs
- [x] Auth Builder Service
- [x] Support Multi Tenants
- [x] Account Table Column
- [x] Account Panel Events
- [x] Attach New Field To Accounts
- [x] Export
- [x] Import
- [ ] Google Contacts Integrations
Installation
after install your package please run this command
if you are not using this package as a plugin please register the plugin on /app/Providers/Filament/AdminPanelProvider.php
Publish Account Model
you can publish your account model to add other relations or implement some interfaces by using this command
now go to your filament-accounts.php
config file and change the model value to the new one.
if you don't find it you can publish it
Add Accounts Guard
now you need to add a new guard to your auth.php config like this
Usage
this plugin makes it easy to make a starting point for your app if this app has customers to manage
but here is the problem, every app has a different way of managing customers, so we built a Facade service to control the way you want to manage your customers
Use Avatar
you need the Media Library plugin to be installed and migrated you can use this command to publish the migration
now you need to migrate your database
now add this method to your plugin in AdminPanelProvider.php
Use Filament Types
you can use the types to manage your accounts types by install Filament Types
after that install types
and allow ->useTypes()
on the plugin
Use Notifications
you need to install Filament Alets
after that install alerts
and allow ->useNotifications()
on the plugin
Use Account Locations
you can use account locations by install Filament Locations
after that install locations
and allow ->useLocations()
on the plugin
Show Address Field
you can show or hide addresss field on the create or edit form by using this code
Show Type Field
you can show or hide type field on the create or edit form by using this code
Use Account Meta Relation Manager
you can allow Other Feature and pages like this
Auto Account Meta Caching
on your .env
add this
supported cache stores are
Use Account Requests Resource
you can allow the requests manager by using this code
Use Account Contact Us Resource
you can allow the contact us manager by using this code
Allow Teams Manager
install jetstream without run install command.
than publish the migrations
now you need to migrate your database
now publish your Accounts model
inside your published model use this implementation
on your main panel you must use teams
Attach New Field To Accounts
you can attach a new field to the accounts table by just passing the field name and the field type to the facade service method
Attach Relation To Accounts
you can attach a new relation to the accounts relations manager by just passing the relation class to the facade service method
Attach Table Button
you can attach a new button to the accounts table by just passing the button class to the facade service method
Use Export & Import Actions
before use Export & Import actions you need to install laravel excel package
now on your main panel provider add ->useExport()
, ->useImport()
to the plugin
Use Account Column
you can use the account column in any table by using this code
just pass the account id to the column
How to use builder
just install the package and you will get everything working, it supports some features ready to use:
- Accounts
- Locations
- Contact Us
- Send Notifications
- Auth APIs
- Send OTP Events
you can activate or deactivate any feature you want from the package config file.
Use Accounts as SaaS Panel
install jetstream without install it.
than publish the migrations
now you need to migrate your database
now publish your Accounts model
inside your published model use this implementation
on your main panel you must use teams
now on your new panel just use this plugin
you can change settings by remove just methods from plugin.
NOTE to use ->useOTPActivation()
you need to install Filament Alets from the next step first, and to use ->databaseNotifications()
you need to publish notification database table first
Use Account Locations on SaaS Panel
you can make your account manage the locations by using this code
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
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
or you can use it anywhere on your app by using the livewire component
Use Filament Impersonate With SaaS Panel
you can use the impersonate to impersonate the user by install it first
now on your main panel provider add ->useImpersonate()
, ->impersonateRedirect('/app')
to the plugin
now clear your config
for more information check the Filament Impersonate
Auth Events
we have added a lot of events to the package, so you can listen to them and do what you want.
OTP Event
Account Success Login Event
When the user logs in successfully, we fire this event.
Account Registered Event
When the user registers successfully, we fire this event.
Use Auth Builder
you can build multi-auth using the same accounts table in a very easy way, so we created a Facade class to help you do that.
How to use
you just need to create 2 controllers AuthController
, ProfileController
and on your profile controller, you just need to use Profile
traits
APIs
we have added a lot of APIs to the package, so you can use them to manage your accounts. please check this file API Collection
Custom create / edit validation
you can custom the validation rules for creating / editing accounts by just passing the rules you want to the facade service method
by using this method you can custom the validation rules for creating / editing accounts on the web and APIs
Other Filament Packages
Checkout our Awesome TomatoPHP
All versions of filament-accounts with dependencies
tomatophp/console-helpers Version ^1.1
filament/filament Version ^3.0.0
filament/notifications Version ^3.0.0
tomatophp/filament-helpers Version ^1.0
filament/spatie-laravel-media-library-plugin Version ^3.2
genealabs/laravel-model-caching Version ^11.0
laravel/sanctum Version ^4.0