Filament

F

Filament

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

Join

Nest Modal Needs Two Click To Open

I have a table whith an action on each record to open a modal (slideover) to view the record details. The modal content is a custom livewire component and is called like this ```php...

How can I change the action after changing the password?

After I submit the new password, I get a 404 error, but I checked the system and the password was successfully changed, so it might just be a redirect issue. How can I change that behavior?...
No description

Custom UUID models not working on save

Missing required parameter for [Route: filament.admin.resources.tours.edit] [URI: admin/tours/{record}/edit] [Missing parameter: record]. Getting this error for any model I have with uuids. The IDs are generated by the DB tho so that might be it?...

Import Preview Table Filamentphp

I want to display Datatable pagination for CSV data preview import in Filament PHP

Frontend calc in a Filament Resource form - no blade

I'm building a Filament Resource form (so no Blade file), and I need to do a frontend calcs. I don't wanna rely on live() or any backend roundtrip. Since it's all inside a Resource, is there a clean way to inject JS (Alpine or raw) directly to watch those fields and update the fields?...

How filament component works ?

Hi everyone! I’m currently tinkering with a custom Filament form field and ran into a bit of confusion. I tried the following in a Blade file: ```php <x-filament-forms::text-input />...

Accessing an image from the public directory in theme.css

I tried to access my image from app/public in filament/theme.css, but it always returns a 404 error. I used url('/images/logo.png'), but it didn’t work. Interestingly, url('/public/images/logo.png') worked — but I’m wondering if there’s a better or more correct approach.
Solution:
Sounds like your /public path solution can also work: https://vite.dev/guide/assets#the-public-directory I thought there is also a way to disable this behaviour....

How do we preserve image filenames from Rich Editor?

https://filamentphp.com/docs/3.x/forms/fields/rich-editor I'm not finding a way to preserve file names like you can with File Upload fields - which is likely negatively impacting public-facing images for SEO/etc. I'm also not finding any way to provide my own file handler to shoot the files over to SpatieMediaLibrary....

How to get the form data in a RelationManager create or edit action?

Currently i have a form with three fields, in the edit action in the before() hook im trying to access the current form data but it's not bringing the Select Input field that is a multiple relationship (belongsToMany), any ideias why?
No description

Encrypted cast doesn't load into inputs when using $hidden cast.

Since this is sensitive information, I don't want to accidentally leak it somewhere in payload on the front facing application hence I put those values into $hidden. But now I have and issue with it, when using Filament as admin, I want to make exception here and still load this data. What would be proper way to handle this? ``` Forms\Components\TextInput::make('api_key')...

Badge is unstyled

Hi guys, I just recognised that Badges are unstyled in my application. I'll share the tailwind.config.js in the next message....
No description

Exporter - Column order issue on csv and xlsx

I have created a Exported and when I export, the 4th ExportColumn is always going to last column on csv and xlsx. Here is my DeliveryOrderReportExporter.php file ```php <?php...

File upload preview not working on edit while using minio private bucket

Uploading files works correctly, and the files are stored in the bucket as expected. However, when editing an existing resource that has an uploaded image, the image preview is not shown.
Solution:
@Xentarix
FileUpload::('profile')->visibility(private);
FileUpload::('profile')->visibility(private);
...
No description

Nothing shows up on the page.

Can you help me determine what are the reason for the inputs not showing up to this page?
No description

Fixing height and width of fileupload in the context of Video Uploading

When I tried to fix the height and width of fileupload.. it is possible to do that with image but in video i am unable to that.. i had tried aspect ratio it made but it fit video as object fit cover.. but i want like object fit contain just like second image i uploaded for video preview context
No description

Toggle default true

Seems toggle does not accept to be true by default. Bug? ```php Forms\Components\Toggle::make('billing_use_company_address') ->afterStateHydrated(function (Forms\Components\Toggle $component) { $component->state(true);...

Custom Icons in Breadcrumbs

Hi! Is It possibile to add an icon before each element of a custom breadcrumb? I've made a custom ViewField in a form with a custom breadcrumb to easily navigate related resources...
Solution:
```php <?php namespace App\Forms\Components; ...

Exporter - dynamic generated columns

Hello All, i have an Exporter Class that extends "Exporter": Example BookExporter:...