tomatophp/filament-types

Manage any type on your app in Database with easy to use Resource for FilamentPHP

Fund package maintenance!
3x1io

v1.0.5 2024-04-17 14:28 UTC

This package is auto-updated.

Last update: 2024-04-17 15:58:32 UTC


README

Screenshot

Filament types

Latest Stable Version PHP Version Require License Downloads

Manage any type on your app in Database with easy to use Resource for FilamentPHP

Screenshots

Types Filters Type Col Form

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.