jaymehs
jaymehs
FFilament
Created by jaymehs on 8/24/2023 in #❓┊help
Creating a new new field type that uses multiple existing components (Toggle and Date Picker)
Makes sense, What I'd ideally like to do is expose it as a plugin, not sure if the above workflow would be able to work the same. My endgoal would be something like:
use Jaymeh\FilamentPublishable\FilamentPublishable;

FilamentPublishable::make('published_at')
->label(__('Published'))
->default(null),
use Jaymeh\FilamentPublishable\FilamentPublishable;

FilamentPublishable::make('published_at')
->label(__('Published'))
->default(null),
7 replies
FFilament
Created by jaymehs on 8/24/2023 in #❓┊help
Creating a new new field type that uses multiple existing components (Toggle and Date Picker)
Got it, the above is me trying to use the existing toggle component within filament and I was just passing data it needed to instantiate itself. Thanks for the assistance. I'm still figuring out what the difference between alpine, blade components and livewire are at the moment, perhaps I'll scale it back a bit and just get a basic prototype working 🙂
7 replies