Auceptin
Auceptin
FFilament
Created by Auceptin on 1/26/2024 in #❓┊help
How to exclude all option from select filter
let's say i have a category filter, is it possible to exclude the 'all' option from the filter so that the query is always filtered to a specific category. or maybe return an empty array if no category is selected
3 replies
FFilament
Created by Auceptin on 10/19/2023 in #❓┊help
Using query params while working with actions
i have the following code, i'm passing url params to the create page, to either show/hide inputs in the form, but the generate action is making the input dissapear is there a better way to do this
Forms\Components\Section::make()
->schema([
Forms\Components\TextInput::make('code')
->label('Coupon code')
->suffixAction(
Forms\Components\Actions\Action::make('generate')
->label('Generate')
->color('gray')
->link()
->icon('heroicon-o-cog-8-tooth')
->action(function (Set $set) {
$set('code', strtoupper(Str::random(12)));
})
)
->visible(fn() => request()->get('type') === 'coupon' ? true : false)
->hint('Customers will enter this coupon code when they checkout.'),

Forms\Components\TextInput::make('promotionName')
->placeholder('Enter promotion name')
->visible(fn() => request()->get('type') === 'promotion' ? true : false),
]),
Forms\Components\Section::make()
->schema([
Forms\Components\TextInput::make('code')
->label('Coupon code')
->suffixAction(
Forms\Components\Actions\Action::make('generate')
->label('Generate')
->color('gray')
->link()
->icon('heroicon-o-cog-8-tooth')
->action(function (Set $set) {
$set('code', strtoupper(Str::random(12)));
})
)
->visible(fn() => request()->get('type') === 'coupon' ? true : false)
->hint('Customers will enter this coupon code when they checkout.'),

Forms\Components\TextInput::make('promotionName')
->placeholder('Enter promotion name')
->visible(fn() => request()->get('type') === 'promotion' ? true : false),
]),
2 replies
FFilament
Created by Auceptin on 9/21/2023 in #❓┊help
How can i register plugins dynamically
Hello, i'm working on table where you can enable/disable plugins, is there a way to register plugin to a panel dynamically and load the corresponding pages and resources
12 replies