Filament

F

Filament

Filament is a collection of beautiful full-stack components for Laravel.You can get help using it on our Discord.

Join

is there a way to manage relations in infolist entry?

I cant find any relationship related on infolist docs.. and when debugging my entry. it seems that relationship is not showing.. even if I am sure that I have relationships data.. is this expected? or I messed up?

Can anyone help me diagnose why Tailwind isn't working.

I made an app entirely using Filament, the only thing outside of it is the invoice template which is a blade file. I installed tailwind the way it says on the tailwind website. Generated the config file, added the content section. Added the directives to app.css. ...

Disable delete action.

How can i disable a predefined action such as delete ? I deleted it from bulk actions but it still appears on edit form?
Solution:
BulkActions are on a table and EditForm is on the Edit page. You can remove it from there too

Eager load or lazy load on modals?

Sorry for the silly question. I have an Edit modal for a record on my table. I am using $record->supplier in multiple places ( supplier being a relationship which gets the supplier modal for the table record ). Is a query being run each time to get the supplier info or is it eager loaded the once? Thanks all. I am running $record->supplier maybe five times through the schema so I idealy I didnt want to be running a query five times for the same thing. Example code usage:...

Filament Settings

Do we have updated version of Filament-Settings plugin for Filament 3.2.x & Laravel 11.x?
Solution:
The solution is check if the DB exists function IsDbExists() { try {...

How to Use mutateFormDataBeforeFill or mutateFormDataBeforeSave for Related Data in Relationships

I have two models, a Customer associated with multiple Contacts. When adding a Customer, I use Repeater::make('contacts')->relationship('contacts')->schema() to add related data. How can I use mutateFormDataBeforeFill or mutateFormDataBeforeSave for Contact data when creating and editing a Customer?

Custom media links in Rich text editor?

I am using the default rich text editor for a basic blog CMS which also requires images in the. However, when you insert an image, it just opens your finder and inserts a link to the image as filament.com/storage/image.jpg This is not ideal because I am serving the images to the frontend through a custom media endpoint, and I need more fine tuned controls over the link i.e. different sizes, thumbs, cache headers, etc. Is there a way to extend the Rich text editor Media uploader to use some sort of Media library and to generate custom links before saving to database?...

Custom Pages and Widgets without resources

Hello everyone, I'm rebuilding my new Portfolio in Laravel and would like to keep my collection of md articles without having to store them in a database. I'd like to have some data in a filament admin section (alongside other data) and be able to do basic CRUD operations on those articles. Is there a way to do so and have some widgets (like a count or else) using this data (kind of like a custom Resource) or do I have to do everything manually ? Don't know if I explained myself correctly, but hopefully someone can help me ?...
Solution:
I'd give Orbit from Ryan a try. It's a DB driver for flat files https://github.com/ryangjchandler/orbit...

how can show information in topbar?

Hey guys, i need show information from database in the topbar, how can do this? Any idea or configuration from Filament for this? i check this https://filamentphp.com/docs/3.x/panels/resources/global-search but i'ts not the same that i nedd....
No description

SimplePage not using a Panel for Render Hooks/Colors

Hello, I'm trying to create a simple page that mimics the Login page but for the 2FA code. Is it possible to have it use my panel? I tried using
Filament::setCurrentPanel
Filament::setCurrentPanel
but it still doesn't use my render hooks OR colors. I'd use a regular page but I need this page to be for unauthenticated users because they aren't logged in until the 2FA is confirmed....

Persist sort order

Hi. Can user selected sort be persisted on an relationshipManager table? Thanks...
Solution:
Maybe this functionality was added later? But this is plain Filament: ```php // Resource class public static function table(Table $table): Table {...

the file does not appear in the repeater fileUpload (Custom Page)

I have this repeater(photo 1) and a i have this data (photo 2) code: ```Repeater::make('paid_amounts')...
No description

Custom editAction to edit single field

Hi. I need an Action on the header of a viewPage, that opens a form with a Select and edit a single field of the model. This code allways opens the full edit form. Any ideas?...
Solution:
Solved!
No description

widget query filter on related field

I followed the instructions and have a summarizing widget table for Campaign Status. It has filters on the Dashboard: Client and Service Manager. It filters fine on client_id, a field in the campaign table. Dashboard:...
Solution:
Yeah, customSupportManager() is very likely not a column in your DB. You can't use Laravel relation on a DB directly. $query->where('customerSupportManager()', $csm_id); // belongsToThrough I guess you need some left join leftJoin() to get the needed columns...
No description

How can to disable 'create & create another' button on createOptionForm

Good day guys. How can i disable 'create & create another' button on createOptionForm `Forms\Components\Select::make('owner_id') ->relationship('owner', 'name') ->searchable()...

Table with differents row content

Hi. I have an ISSUE model , with a relationshipManager on "activities". Each activity can be of different "types" (comment, attachment, priority change, etc) I want my table to display different data for each type. Is it possible? Thanks...

Question regarding Media Library Manager Pricing

Hey @ralphjsmit sorry for the ping. Few questions: I really like the plugin from what I could see in the description but: - Filament Plugin page says $49 but it seems like it costs 89$ for a Single Project? You might wan't to update that if its not intended....
Solution:
Every plugin has it's own channel: #ralphjsmit-media-library-manager But to answer your question: Ralph still sells V1 which costs 49€. Also it's possible to upgrade later and you pay the difference plus 14€ fee:...

Slider Over Form Actions

Hi fellas, I am having issue with chaning labels and color to form actions "Save" and "Cancel" when edit form is on sliderOver(). When form is in it's own edit page everything works fine when i override getSaveFormAction() and getCancelFormAction() But when form is within slideOver those overriden function have no effect.. Any suggestions?

filament filters show more

hi, I have a large list of filters in a checkbox list using a table in a livewire component, the filters are currently showing in a modal, but is there a way to show only a few options on each large filter checkbox list and a view more button built into filament, like on Airbnb filters or would I have to make a custom blade view and pull it in? Thanks
https://imgur.com/a/u2suI5n
https://imgur.com/a/u2suI5n
...
Solution:
They can scroll through the select to see all options? It's just taking up less space and requires a click as does the "show more" option

Visual Inconsistencies in Filament Repeater with Dynamic Select Options

We are using a Filament form with a Repeater that contains a Select field to choose workers from the User model, filtered by the Employee role. The requirement is that once a worker is selected in one row, they should not appear in the Select options of other rows. ```php Select::make('worker_id')->reactive() ->options(function (callable $get) { $allUsers = User::role('Employee')->pluck('name', 'id');...