OzgurOzarpaci
OzgurOzarpaci
FFilament
Created by OzgurOzarpaci on 4/1/2024 in #❓┊help
Can't Upgrade my Filament because of Depencies
Hi, I have a project and Filament Stucks at 3.2.0 version and I can't use cache components commands. Because composer says this:
26 replies
FFilament
Created by OzgurOzarpaci on 8/7/2023 in #❓┊help
TextInput is not updates when mask active
Hi, I have 2 TextInput in my form. When i update first input, it updates second input with some calculations. But after i add mask to input it not updates anymore. Here is my code:
TextInput::make('producer_price')
->suffix('TL')
->label(__('product::filament.producer_price'))
->default(0)
->reactive()
->afterStateUpdated(function (\Closure $get, \Closure $set) {
self::calculatePrices($get, $set);
})
->lazy()
->mask(fn (TextInput\Mask $mask) => $mask
->numeric()
->decimalPlaces(2)
->decimalSeparator(',')
->mapToDecimalSeparator([','])
->minValue(1)
->maxValue(PHP_INT_MAX)
->normalizeZeros()
->padFractionalZeros()
->thousandsSeparator('.'),
),
TextInput::make('net_producer_price')
->label(__('product::filament.net_producer_price'))
->suffix('TL')
->default(0)
->required()
->mask(fn (TextInput\Mask $mask) => $mask
->numeric()
->decimalPlaces(2)
->decimalSeparator(',')
->mapToDecimalSeparator([','])
->minValue(1)
->maxValue(PHP_INT_MAX)
->normalizeZeros()
->padFractionalZeros()
->thousandsSeparator('.'),
),
TextInput::make('producer_price')
->suffix('TL')
->label(__('product::filament.producer_price'))
->default(0)
->reactive()
->afterStateUpdated(function (\Closure $get, \Closure $set) {
self::calculatePrices($get, $set);
})
->lazy()
->mask(fn (TextInput\Mask $mask) => $mask
->numeric()
->decimalPlaces(2)
->decimalSeparator(',')
->mapToDecimalSeparator([','])
->minValue(1)
->maxValue(PHP_INT_MAX)
->normalizeZeros()
->padFractionalZeros()
->thousandsSeparator('.'),
),
TextInput::make('net_producer_price')
->label(__('product::filament.net_producer_price'))
->suffix('TL')
->default(0)
->required()
->mask(fn (TextInput\Mask $mask) => $mask
->numeric()
->decimalPlaces(2)
->decimalSeparator(',')
->mapToDecimalSeparator([','])
->minValue(1)
->maxValue(PHP_INT_MAX)
->normalizeZeros()
->padFractionalZeros()
->thousandsSeparator('.'),
),
Calculate prices method does some calculations it's working but i set values like this:
$set('net_producer_price', $prices['net_producer_price']);
$set('net_producer_price', $prices['net_producer_price']);
6 replies
FFilament
Created by OzgurOzarpaci on 8/6/2023 in #❓┊help
Media Library order is reversed
4 replies
FFilament
Created by OzgurOzarpaci on 7/26/2023 in #❓┊help
Money Problem
1 replies
FFilament
Created by OzgurOzarpaci on 6/19/2023 in #❓┊help
Step is not works correct if it's using before numeric validation
For example i have discount field:
TextInput::make('discount')
->required()
->numeric()
->minValue(0)
->maxValue(100),
TextInput::make('discount')
->required()
->numeric()
->minValue(0)
->maxValue(100),
i want to add a step. but if i add step(0.01) before numeric() it's going to increase field by 1, not 0.01. But i add after numeric it works. It's not a bug or something i guess but i want to inform you.
1 replies
FFilament
Created by OzgurOzarpaci on 6/7/2023 in #❓┊help
Issue About Reorderable Table in Relation Manager
3 replies
FFilament
Created by OzgurOzarpaci on 5/20/2023 in #❓┊help
how to refresh relationship manager table?
Hi, i have a drop in action button (plugin) on my form. After this action, my relation managers must be updated/refreshed. My code:
DropInAction::make('test')
->disableLabel()
->execute(function (\Closure $get, \Closure $set, Livewire $livewire) {
return \Filament\Forms\Components\Actions\Action::make('add_default_properties')
->icon('heroicon-o-plus')
->label('Varsayılan Özellikleri Ekle')
->action(function () use ($get, $livewire) {
... // <--- my code is in here
});
}),
DropInAction::make('test')
->disableLabel()
->execute(function (\Closure $get, \Closure $set, Livewire $livewire) {
return \Filament\Forms\Components\Actions\Action::make('add_default_properties')
->icon('heroicon-o-plus')
->label('Varsayılan Özellikleri Ekle')
->action(function () use ($get, $livewire) {
... // <--- my code is in here
});
}),
4 replies
FFilament
Created by OzgurOzarpaci on 5/17/2023 in #❓┊help
Issue about Spatie Media Library Plugin
After click "Create Another" button in create form, media input is not reset.
11 replies
FFilament
Created by OzgurOzarpaci on 4/13/2023 in #❓┊help
How to remove Create button from resource
I deleted create, edit and view pages from my resource but i still seeing create button. I don't want to use policy to remove create button. Do you have any suggestion?
4 replies