orestebh
orestebh
FFilament
Created by orestebh on 4/8/2024 in #❓┊help
How list according to the tab selected in the table
Hello, how could I obtain the list of resources and show it according to the tab that is active in filamentphp. Ex: In the user resource, if I check the doctor tab, show the doctors table. But on the same user page?
2 replies
FFilament
Created by orestebh on 3/25/2024 in #❓┊help
Align new form action to the right
No description
3 replies
FFilament
Created by orestebh on 3/25/2024 in #❓┊help
Share data between resources
Hi... how can i share data between resources in filament? I have a Lead resource and a Patient resources and i want to pass name from Lead to Patient create page.
2 replies
FFilament
Created by orestebh on 11/6/2023 in #❓┊help
How implement a filter in a filament resource that uses the attribute of a HasOne relationship
Hello everyone. I have a question, how can I implement a filter in a filament resource that uses the attribute of a HasOne relationship. For example, I have two models Author and Profile, where Author hasOne Profile and Profile belongsTo Author. In profile there is the boolean attribute is_featured. What I want is to filter the list of authors by that attribute. I tried TernaryFilter::make('profile.is_featured') but it shows me all the authors.
3 replies
FFilament
Created by orestebh on 9/19/2023 in #❓┊help
Is there a way to use the ->imageEditor() method in filament v2
Is there a way to use the ->imageEditor() method in filament v2. Or failing that, some plugin to edit the images?
4 replies
FFilament
Created by orestebh on 9/9/2023 in #❓┊help
Help with getTableQuery method
I am trying to modify the query generated by eloquent for the listing of a resource, which is a (select *) and I want to put only specific columns (select name, institution_id, etc) not all of them. I am overriding the getTableQuery method in the resource but it keeps executing the query with * on the listing page. Any suggestions? protected function getTableQuery(): Builder { return parent::getTableQuery() ->select('name', 'institution_id', 'created_at', 'type_id', 'job_order_id'); } and the query in filament list page: select * from job_job order by activation_date desc, updated_at desc limit 10 offset 0
3 replies
FFilament
Created by orestebh on 8/31/2023 in #❓┊help
Error: Method Filament\Forms\Components\Actions\Action::isModalClosedByClickingAway does not exist
Hello everyone, I hope you can help me with this error, I am following an article about "to add GPT-3 Modal to Input Fields in FilamentPHP", this is the link https://helgesver.re/articles/add-openai-gpt-in-filament-fields . But when I access the button, it shows me this error: Method Filament\Forms\Components\Actions\Action::isModalClosedByClickingAway does not exist.
2 replies
FFilament
Created by orestebh on 8/21/2023 in #❓┊help
Image attached to a RichEditor component is not displayed
I'm trying to upload an image to s3 from a RichEditor component. Upload the image well and save to s3, but after a while if you go to edit the registry the image is not displayed.
25 replies