Ermac
Ermac
FFilament
Created by Ermac on 10/3/2024 in #❓┊help
Confused on how to handle sorting in Filament and Laravel
I am rewriting, a old application that reuire the sorting of record both for full table or in groups like categories and subcategories so far i looked at this package : https://github.com/ninoman/laravel-sortable/tree/master and this package from Filament: https://filamentphp.com/plugins/ibrahim-bougaoua-sort-order
103 replies
FFilament
Created by Ermac on 10/1/2024 in #❓┊help
Hi, i need help handling a self referencing table via Select
hi, i'm trying to create a select for a self referencing table, but i seem to have run on some issues, is there a preferred way to do it? looking around most samples i saw did not work if table was empty, or the foreign key had a default value for level 0 of the tree, i wrote it like this: Components\Select::make('parent_id')->relationship('Parent', titleAttribute: 'name' )->default(0), but the selct field says it's invalid
44 replies