Manage any type on your app in Database with easy to use Resource for FilamentPHP
composer require tomatophp/filament-types
after install your package please run this command
php artisan filament-types:install
finally reigster the plugin on /app/Providers/Filament/AdminPanelProvider.php
->plugin(\TomatoPHP\FilamentTypes\FilamentTypesPlugin::make())
you can add new type using config file config/filament-types.php
or you can register a type from your provider using our Facade
use TomatoPHP\FilamentTypes\Facades\FilamentTypes;
FilamentTypes::register([
'types',
'groups'
], 'accounts');
you can access types from anywhere by using type helper function
type_of($key);
i will return type object
you can use type column in your table like this
use TomatoPHP\FilamentTypes\Components\TypeColumn;
TypeColumn::make('type')->searchable(),
you can publish config file by use this command
php artisan vendor:publish --tag="filament-types-config"
you can publish views file by use this command
php artisan vendor:publish --tag="filament-types-views"
you can publish languages file by use this command
php artisan vendor:publish --tag="filament-types-lang"
you can publish migrations file by use this command
php artisan vendor:publish --tag="filament-types-migrations"
you can join our discord server to get support TomatoPHP
you can check docs of this package on Docs
Please see CHANGELOG for more information on what has changed recently.
Please see SECURITY for more information about security.
The MIT License (MIT). Please see License File for more information.