Filament

F

Filament

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

Join

make all images clickable and display in full

currently my code is like this SpatieMediaLibraryImageEntry::make('product-image') ->collection('product-images') ->label(''), then I want this image to be clickable and it will appear in full in the infolist...

Two list records for same resource active nav

Hi, I have two list pages for the same resource: "List Invoices" and "List Proforma." Both pages function correctly, except for the active sidebar option. When I click on the "List Invoices" option, the sidebar correctly highlights it as active. However, when I click on the "List Proforma" option, the sidebar still incorrectly highlights the "List Invoices" option. How can I resolve this issue?...

Issues when extending resource pages

I am running into issues when overriding pages from a resource. I configure the used resource in a config file from a filament plugin. The idea for the plugin is to have basic resources (for standard implementations). Where I can extends the resources for custom implementations if needed. I register the resource by using the following notation in the base resource pages: ...

How to add header text for widget groups

I have a filament admin dashboard with some stats widgets: stat 1 --- stat2 --- stat3 --- stat 4 stat 5 --- stat6 --- stat7 --- stat 8 i want to separate them somehow and add a header on top of them, something like:...

Custom form component

Hello there, For a field called main_subject_id, I created a custom form component and added a Livewire component. The reason is because the user should be able to collapse a tree (built on the nested-set package, see screenshot) and choose a certain value . I have the frontend working but I don't know how to write the chosen value to the DB when submitting. If I understand correctly, I have to bind the new value to the Alpine js variable? ...
No description

Fabricator multi language

Hi, is it possible to have multilingual content blocks and pages in the Fabricator Plugin using Spatie Translatable or another solution?

How to handle selected relations during creating a record in handleRecordCreation

When I try to create a new User from this form I don't see the selected relations as ID's in the handleRecordCreation so that I can manually attach anything needed. This is how I load them ```...
Solution:
I did end up using the following ``` private static function buildRolesField(): Select {...
No description

Record not showing

Please help me, the skripsi_id section why always reads the earliest record. even though I have called $record->id :

Price (in pence) field - show result in pounds in suffix/or somewhere else that's sensible

Hi, I am attempting to let a user enter a price in pence, and then show them the converted amount in pounds in a clean and simple way. I hace tried the following but unfortunately the suffix doesn't get updated. ``` Forms\Components\TextInput::make('price') ->label('Price (in pence)')...

open a modal from a navigationitem

Hi. I would like to add a link in left navigation to open a modal and I put the link with this code in the file
AdminPanelProvider.php
AdminPanelProvider.php
```...
link added

How to get value from JS generated radio component

hi everyone; I have a wizard with a text-Input after every keypress the value is sent to an API, the return JSON builds a HTML table with a Radio input so the user can select. ...
Solution:
thanks for the hint,I will have a look at it. For now I solved this special task by writing the data (it's ONE number) to a cookie and reading it in php.

Export Action - Custom File Path

Is there a way to specify a custom export file path without overriding a bunch of classes?

SpatieMediaLibraryFileUpload dynamic MIME types?

hi guys! having a reactive field in a normal EditForm, its possible to set dynamically the ->acceptedFileTypes([]) depends on the field previous selected?? I'm trying to do with the $get but it doesn't update the accepted mime types......

Format boolean columns in exporter?

Instead of 1 and 0 I want it to bes Yes or No in the csv/xslx file. ```php ExportColumn::make('is_late') ->formatStateUsing(fn ($state) => $state ? 'Yes' : 'No')...
Solution:
Yeah there's some weird bugs with the exporter. Cleaning the cache and jobs table fixes it.

How to move CreateAction inside HeaderActions

It's possible to move CreateAction button inside HeaderActions header?
No description

Missing Data on the Table

In my current system, I have a list of users(2k+ users) on my simple user resource.. why is that there are records that you can't see when you browse the table page by page but when you try searching, sorting the columns or increase the limit per page, those records will display..

Frontend page filament

how to frontend page create using filament i want to replace welcome.blade file to dashboard page without route call how can i set...

Cryptic Vite Errors

Problem Running the command vite or bun run dev does not work properly and results in the following error. Error ```bash...
Solution:
Fix was making a symbolic link
sudo ln -s ~/.valet/ ~/.config/
sudo ln -s ~/.valet/ ~/.config/
...

Flatten data in the Blocks structure?

I want to get rid of the "data" parent in the structure that the Block saves data in eg. [{data: {}, type: "block type"} and instead just have the content of the data directly in the parent alongside the block type what's the recommende way of doing this?...

Custom Field: Using Form Components

As the title says, i want make use of filament components like a select, inside my custom filament field, how can i achieve that? i tried using HasForm Contract , and InteractsWithForm but it wasn't successful. any suggestions?...