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.
Full Changelog: https://github.com/tomatophp/filament-types/compare/v4.0.1...v4.0.2
Full Changelog: https://github.com/tomatophp/filament-types/compare/v4.0.0...v4.0.1
By @fadymondy
Full Changelog: https://github.com/tomatophp/filament-types/compare/v2.0.4...v4.0.0
Full Changelog: https://github.com/tomatophp/filament-types/compare/v2.0.3...v2.0.4
locals config option by @pschilly in https://github.com/tomatophp/filament-types/pull/13Full Changelog: https://github.com/tomatophp/filament-types/compare/v2.0.2...v2.0.3
Full Changelog: https://github.com/tomatophp/filament-types/compare/v2.0.1...v2.0.2
Full Changelog: https://github.com/tomatophp/filament-types/compare/v1.0.27...v2.0.0
Full Changelog: https://github.com/tomatophp/filament-types/compare/v1.0.22...v1.0.23
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()
for not set on filtersFull Changelog: https://github.com/tomatophp/filament-types/compare/v1.0.20...v1.0.21
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
fix migration rollback
Full Changelog: https://github.com/tomatophp/filament-types/compare/v1.0.18...v1.0.19
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;
}
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
check if icon exists
Full Changelog: https://github.com/tomatophp/filament-types/compare/v1.0.15...v1.0.16
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
Full Changelog: https://github.com/tomatophp/filament-types/compare/v1.0.5...v1.0.6
How can I help you explore Laravel packages today?