greenrae94
greenrae94
FFilament
Created by greenrae94 on 9/12/2024 in #❓┊help
barryvdh/laravel-ide-helper intelephense issue
No description
4 replies
FFilament
Created by greenrae94 on 9/3/2024 in #❓┊help
Error in documentation or code ( Select->allowHtml( ) )
I wanted to make use of the allowHtml() method in a Select box that I have made on one of my resource forms, but even when copying the documentation exactly I have been unable to get any HTML to display at all. I haven't made any custom css or edited any of the styling throughout the rest of the application. When I go to the inspector I can see the HTML is being applied but the styling is being overwritten by something, and from my investigation so far looks like its being overwritten by:
public/css/filament/forms/forms.css
public/css/filament/forms/forms.css
I'm hoping this is something that either I have done wrong or have overlooked in some regard, but it all seems to be correct. Here is the Select box that I was trying to make:
Select::make('status')
->label('Status')
->options([
'submitted' => '<span class="text-blue-500">Submitted</span>',
'accepted' => '<span class="text-green-500">Accepted</span>',
'rejected' => '<span class="text-red-500">Rejected</span>',
])
->allowHtml()
Select::make('status')
->label('Status')
->options([
'submitted' => '<span class="text-blue-500">Submitted</span>',
'accepted' => '<span class="text-green-500">Accepted</span>',
'rejected' => '<span class="text-red-500">Rejected</span>',
])
->allowHtml()
I did also try adding the searchable() method to it as well like in the docs in case it was restricted to just searchable objects, but that hasn't helped either.
4 replies
FFilament
Created by greenrae94 on 8/6/2024 in #❓┊help
Reusing a Page
I have created a custom page that I've been trying to make reusable. So based on one of the tables in my database, I want to have multiples of that page show up in the navigation for each entry for a particular user. I've had a look through the documentation quite thoroughly and there doesn't seem to be anything about being able to reuse the same custom page multiple times. Wondering if anyone had any ideas on how to get this to work?
4 replies
FFilament
Created by greenrae94 on 7/2/2024 in #❓┊help
Generate Multiples of a Custom Page based off of Database entries
Been working on this tax calculator and I wanted to generate a number of pages based on a custom form page I have made. The amount of pages generated should be based off of which tax years have been selected in a previous form (I have each of the selected years saved to a table that has a many to one relationship to the user table). The pages are being served by a provider I have made. I currently haven't been able to get the provider to serve up multiples of the same page. So my question is, is it possible to have a provider serve multiple versions of the same custom page based off of something like database entries? Or is it rigidly locked so that it can only serve one of each page once per provider?
2 replies