Wbzy
Wbzy
FFilament
Created by Wbzy on 10/16/2024 in #❓┊help
How to style each xlsx row in export action
i know there is getXlsxCellStyle() but its apply to all row, how to do it just for row i want to style?
2 replies
FFilament
Created by Wbzy on 12/8/2023 in #❓┊help
How to listen to dispatch events in form?
No description
15 replies
FFilament
Created by Wbzy on 11/28/2023 in #❓┊help
Multiple select as table with checkbox
No description
2 replies
FFilament
Created by Wbzy on 11/9/2023 in #❓┊help
How to show summary in group only and not in the bottom of the table?
No description
2 replies
FFilament
Created by Wbzy on 11/6/2023 in #❓┊help
How to show Count relationship in table?
No description
4 replies
FFilament
Created by Wbzy on 11/6/2023 in #❓┊help
Halt doesnt stop the editing proccess?
so i have a simple edit action i want to do Unique Validation for Multiple Columns a product cant have the same type, brand and category. when im using the halt(), the record still updated somehow
->mutateFormDataUsing(function (array $data): array {
$type = ProductType::find($data['product_type_id']);
$brand = ProductBrand::find($data['product_brand_id']);
$category = ProductCategory::find($data['product_category_id']);

$data['name'] = $type->name . ' ' . $brand->name . ' - ' . $category->name;

return $data;
})
->before(function(EditAction $action, Product $record, array $data){
$product = Product::where('name', $data['name'])
->whereNotIn('id', [$record->id])
->exists();

if($product){
Notification::make()
->title('Data should be unique')
->danger()
->seconds(5)
->send();

$action->halt();
}
}),
->mutateFormDataUsing(function (array $data): array {
$type = ProductType::find($data['product_type_id']);
$brand = ProductBrand::find($data['product_brand_id']);
$category = ProductCategory::find($data['product_category_id']);

$data['name'] = $type->name . ' ' . $brand->name . ' - ' . $category->name;

return $data;
})
->before(function(EditAction $action, Product $record, array $data){
$product = Product::where('name', $data['name'])
->whereNotIn('id', [$record->id])
->exists();

if($product){
Notification::make()
->title('Data should be unique')
->danger()
->seconds(5)
->send();

$action->halt();
}
}),
5 replies
FFilament
Created by Wbzy on 8/30/2023 in #❓┊help
Livewire Component inside filament Custom page cant use $this->validate()
when i try to use $this->validate it return "array_merge(): Argument #1 must be of type array, null given", when i try to use this livewire component outside custom page it works well. any one know why?
29 replies
FFilament
Created by Wbzy on 8/29/2023 in #❓┊help
How to use Livewire Component in Custom Page ?
7 replies
FFilament
Created by Wbzy on 8/22/2023 in #❓┊help
Conditionally hide form in modal action
7 replies
FFilament
Created by Wbzy on 8/17/2023 in #❓┊help
How to hide Relation Manager table when state is empty or there is no record
I have a post table with category long and short, in long category a post can create sub post but in short category a post cant make a sub post. how do i achive that?
6 replies