tomatophp / filament-types
Manage any type on your app in Database with easy to use Resource for FilamentPHP
Fund package maintenance!
3x1io
Requires
- php: ^8.1|^8.2
- filament/filament: ^3.0.0
- tomatophp/console-helpers: ^1.1
This package is auto-updated.
Last update: 2024-04-17 15:58:32 UTC
README
Filament types
Manage any type on your app in Database with easy to use Resource for FilamentPHP
Screenshots
Installation
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())
Register New Type
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');
Use Type Helper
you can access types from anywhere by using type helper function
type_of($key);
i will return type object
Use Type Column
you can use type column in your table like this
use TomatoPHP\FilamentTypes\Components\TypeColumn; TypeColumn::make('type')->searchable(),
Publish Assets
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"
Support
you can join our discord server to get support TomatoPHP
Docs
you can check docs of this package on Docs
Changelog
Please see CHANGELOG for more information on what has changed recently.
Security
Please see SECURITY for more information about security.
Credits
License
The MIT License (MIT). Please see License File for more information.