Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Filament Types Laravel Package

tomatophp/filament-types

Filament Types Manager lets you define and manage reusable “types” in your Laravel app database. Includes a ready-to-use Filament resource with filtering, icons, colors, and labels, plus a simple plugin config to register type groups for your models.

View on GitHub
Deep Wiki
Context7
v4.0.2

What's Changed

Full Changelog: https://github.com/tomatophp/filament-types/compare/v4.0.1...v4.0.2

v4.0.1
v4.0.0

What's Changed

By @fadymondy

Full Changelog: https://github.com/tomatophp/filament-types/compare/v2.0.4...v4.0.0

v2.0.4

What's Changed

New Contributors

Full Changelog: https://github.com/tomatophp/filament-types/compare/v2.0.3...v2.0.4

v1.0.23
  • add filament-plugin integration.

Full Changelog: https://github.com/tomatophp/filament-types/compare/v1.0.22...v1.0.23

v1.0.21

Use Type Column

add ->allowDescription() method to the Column to make it easy to show up the description of the type in hover as a tooltip

use TomatoPHP\FilamentTypes\Components\TypeColumn;

TypeColumn::make('type')
...
->allowDescription()

  • allow Type ordering
  • update table grouping setting
  • disable type if for not set on filters

Full Changelog: https://github.com/tomatophp/filament-types/compare/v1.0.20...v1.0.21

v1.0.20

Use Type Column

you can use type column in your table like this

use TomatoPHP\FilamentTypes\Components\TypeColumn;

TypeColumn::make('type')
->for('users')
->type('status')
->searchable(),

Full Changelog: https://github.com/tomatophp/filament-types/compare/v1.0.19...v1.0.20

v1.0.19
v1.0.17

Use Type Base Page

you can create a page for selected type by just extand base type page

use TomatoPHP\FilamentTypes\Pages\BaseTypePage;

use TomatoPHP\FilamentTypes\Services\Contracts\Type;

class NotesGroups extends BaseTypePage
{
     public function getTitle(): string
    {
        return "Notes Groups";
    }

    public function getType(): string
    {
        return "groups";
    }

    public function getFor(): string
    {
        return "notes";
    }

    public function getBackUrl()
    {
        return ManageNotes::getUrl(); // TODO: Change the autogenerated stub
    }

    public function getTypes(): array
    {
        return [
            Type::make('todo')
                ->name([
                    "ar" => "مهام",
                    "en" => "TODO"
                ])
                ->color('#1461e3')
                ->icon('heroicon-o-list-bullet'),
            Type::make('ideas')
                ->name([
                    "ar" => "أفكار",
                    "en" => "Ideas"
                ])
                ->color('#13e0da')
                ->icon('heroicon-o-sparkles'),
            Type::make('saved')
                ->name([
                    "ar" => "محفوظ",
                    "en" => "Saved"
                ])
                ->color('#29a82e')
                ->icon('heroicon-o-arrow-down-on-square'),
        ];
    }
}

it will be not appear on the navigation menu by default but you can change that by just use this method

public static function shouldRegisterNavigation(): bool
{
    return true;
}

Use Type Component

if you like to use a type as a package we create a blade component for you to make it easy to use anywhere on your app like this

<x-tomato-type :type="$type" label="Group"/>

Full Changelog: https://github.com/tomatophp/filament-types/compare/v1.0.16...v1.0.17

v1.0.16
v1.0.14
  • remove unique key by @3x1io
  • add validation to the key with type/for by @3x1io
  • add empty state option on the column by @3x1io
return [
    /**
     * Empty State
     *
     * If type Column is Empty Put This Message
     */
    "empty_state" => null,
];

you can add the empty state here and it will appear on all empty type columns.

Full Changelog: https://github.com/tomatophp/filament-types/compare/v1.0.13...v1.0.14

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
codeflextech/permission-manager
karnoweb/livewire-datepicker
sayedenam/sayed-dashboard
milito/query-filter
apiboxsym/user-bundle
apiboxsym/health-check-bundle
jayeshmepani/jpl-moshier-ephemeris-php
elnasnato/laraliveui
labrodev/rest-sdk
sampaui/sampaui
babelqueue/php-sdk
facebook/capi-param-builder-php
babelqueue/symfony
hamzi/corewatch
minionfactory/raw-hydrator
hexters/coinpayment
rjcodes/rjcms
act-training/laravel-permissions-manager
alimarchal/laravel-chart-of-accounts
babenkoivan/elastic-scout-driver