Atena.D
Atena.D
FFilament
Created by Atena.D on 5/21/2024 in #❓┊help
How to prepend next item instead of appending it in a Filament Repeater
If I add a new item in a repeater, it will be added at the end of all other items I want the new items appear at the top of the previous items. Is there any method or way?
4 replies
FFilament
Created by Atena.D on 5/21/2024 in #❓┊help
Error during upload with Filament fileupload
I see this error every time I want to upload a large file like more than 1 MB though the maximum file size in livewire.php is 12 MB and max upload time is 5 min. I also tried ->maxSize(1024 * 10) on FileUpload class but the same error keeps popping up after uploading a file more than 1 MB. Here is my code:
FileUpload::make('file')
->directory('projects/attachments')
->enableDownload()
->enableOpen()
->required(),
FileUpload::make('file')
->directory('projects/attachments')
->enableDownload()
->enableOpen()
->required(),
What should I do?
4 replies
FFilament
Created by Atena.D on 5/11/2023 in #❓┊help
Two level relation in select
How can I show the title of two level relation in a Select element e.g. the structure is like this: accounting->creditCard->bank->bank_name Now I am in accounting resource and only have access to bank_id in credit_cards table with creditCard relationship but I want to have access to the next relationship to get access to bank_name value
2 replies
FFilament
Created by Atena.D on 5/10/2023 in #❓┊help
Get all inputs and their values in an array in create mode
How can I get an array of the current values of all inputs in create mode?
3 replies
FFilament
Created by Atena.D on 4/28/2023 in #❓┊help
How to filter Filament table by nested relationship?
The structure of tables are like this: acc->user->role
now I'm in acc resource and I want to filter the rows based on user roles. How can I do that?
7 replies
FFilament
Created by Atena.D on 4/22/2023 in #❓┊help
Can I have different types of notifications?
I'm developing a big application which has varies parts. Is that possible to have different type of bells for alerts? e.g. for security, users and accounting part.
7 replies
FFilament
Created by Atena.D on 4/22/2023 in #❓┊help
Remove uploaded files in Filament admin panel
Users can upload some images in my app but sometimes admin wants to remove the files from the application folder, how is that possible? I mean is that possible when admin clicks on the x button in filepond? but in that case the image isn't removed from the public folder in the storage.
3 replies
FFilament
Created by Atena.D on 4/14/2023 in #❓┊help
How to create a page without Filament layout?
I want to create a page in my admin panel but I don't want it to have Filament layout. How can I do that?
6 replies
FFilament
Created by Atena.D on 4/2/2023 in #❓┊help
How to show results of an API in custom page table builder.
I've created a custom page in which I request to a URL with cURL to get an API and I want to show the results in the table builder on my custom page. How can I do that?
30 replies
FFilament
Created by Atena.D on 3/30/2023 in #❓┊help
How to create custom list page?
Hi. I wanted to know how to create a custom list page.
10 replies
FFilament
Created by Atena.D on 3/20/2023 in #❓┊help
How to number_format numbers in the tables?
Hi. I have some prices in Filament table builder and I want to number_format them e.g. convert 1234567 to 1,234,567
3 replies
FFilament
Created by Atena.D on 3/17/2023 in #❓┊help
Error Filament\Forms\Components\Select::isOptionDisabled(): Argument #2 ($label) must be of type str
Hi. I have a select field in my form builder that uses user relationship but it throws this error:
Error Filament\Forms\Components\Select::isOptionDisabled(): Argument #2 ($label) must be of type str
Error Filament\Forms\Components\Select::isOptionDisabled(): Argument #2 ($label) must be of type str
My code:
Select::make('model_id')
->relationship('user', 'name')
->required(),
Select::make('model_id')
->relationship('user', 'name')
->required(),
12 replies
FFilament
Created by Atena.D on 3/13/2023 in #❓┊help
Send database notification for any change in a table.
Hi. I wanted to know how can I send database notification to admin panel whenever one of my table changes e.g. one record deleted, added or created. I read https://filamentphp.com/docs/2.x/notifications/database-notifications but I was just able to add the notification bell to admin panel and I couldn't listen to database changes
18 replies
FFilament
Created by Atena.D on 3/11/2023 in #❓┊help
Change Default Order To Descending
How can I change the default order of Filament tables to descending?
2 replies
FFilament
Created by Atena.D on 3/8/2023 in #❓┊help
Get other column value, filament tables
Hi. How can I get another column value in ->default() method in filament tables?
29 replies