Filament

F

Filament

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

Join

How to update livewire components on record save?

I have two custom Livewire components on my record edit page, and I want them to re-render upon saving. Reloading works. I read about listeners, but I can't find an example.
No description

Hey there im facing a 419 error issue when i try and login

i dont have this at home (so far) but when i am at work i have the problem that i get the 419 error Console: Cookie “XSRF-TOKEN” has been rejected because there is an existing “secure” cookie. Cookie “laravel_session” has been rejected because there is an existing “secure” cookie....
No description

Ignore ImportColumn

I couldn't find this in the documentation — is there a way to prevent an ImportColumn from being saved to the database? For example, I have a column in the import file (like image_path) that doesn't exist in the database table, so I want to use it during import but not persist it.

Only arrays and Traversables can be unpacked, null given when use

Hello friends i have a problem when i create a category using a service resource... i have a createOptionForm and it's working, the register is created in the table, but i have this error when i create a new category... ``` Forms\Components\Section::make('Categorías') ->schema([...
No description

callInfolistAction() returns getInfolist() on null while testing a Infolist Action

What I am trying to do I have an Infolist Action (CreateApiTokenAction) that generates an API token for a user. In the UI everything works as expected—clicking the action creates the token and shows a success notification. ...

Line breaks in TextEntry

Hi, I have a "TEXT" field in my MySQL table. I use Textarea in the form to edit it. It has some line brakes, but when I show it in the Infolist, it doesn't brake lines. I've tried ->html() , but doesn't work. Any help? Thanks!...
No description

disable wizard next button

``` Forms\Components\Wizard::make([ Forms\Components\Wizard\Step::make('Customer') ->columns(2) ->schema(fn(): array => $this->getStepOneWizardFormSchema())...

Filament display images

hello all, i use filament resource to save images. in local environment i don't have a problem, but in production i can't access images. i already done php artisan storage:link...

Unable to perform Relation manager table row actions

I have BusinessCategory and Member model with N:N realtionship. My BusinessCategory model has parent children (1:N) relationship with itself but its only two level. My requirement is to show all unique members in parent BusinessCategory even if this member is attached to one or more of its children categories and not directly attached to parent category. I am able to display members in children for a parent category in relation manager table but my table row actions for parent category not wor...

Refresh table on tab change

Hi, is there a way to hook on the tab change event to reset the table? I have a table where columns come dynamically based on certain parameters. These parameters might be different per tab, but my table columns aren't updating. I need the table to refresh itself after each tab change....
Solution:
Just added this method on my ListResource page: ```php public function updatedActiveTab(): void {...

Spatie Media Library blurred image preview

What I am trying to do: Preview successfully uploaded image/s What I did: I've upgraded filament admin panel to v3, more specifically ^3.2 . Along with it I've updated "filament/spatie-laravel-media-library-plugin": "^3.2". My theme compiles correctly and everything else worked like a charm. My issue: The uploaded image/s are blurred, or the entire preview is cut out. The bug where the whole preview is cut out appears when I reload the page, visit some other tabs and then open the images tab....
No description

How to pass current record when using `Infolists\Components\Livewire`

When using the class Infolists\Components\Livewire::make(), how do I pass the current record to the Livewire component?

Why is the navigation position not moving to top?

protected static SubNavigationPosition $subNavigationPosition = SubNavigationPosition::Top; Added this code to the Admin Settings Cluster. Am I missing something?...
No description

Is there a problem with the last release on TextColumn ?

on the hidden or what ever method, when having a closure on a null data, this error happen : Filament\Tables\Columns\Column::hasRelationship(): Argument #1 ($record) must be of type Illuminate\Database\Eloquent\Model, null given, ```php Tables\Columns\TextColumn::make('site_web') ->formatStateUsing(fn () => 'Site Web')...

On domain (host) "/admin" returns 304

Hi, I'm not sure why but on my host when i go to /admin i get the 304 Forbidden.
No description

Created a Settings cluster now I get Route [filament.manage.settings] not defined.

I just generated a cluster and another custom page inside the cluster however I now get this route error. I cannot even see where this route written in any page filament.manage.settings I need help as to what is causing this issue....
No description

Page Titles for the different Resource Pages

Is there a function or an property on the Resource or Record Classes to customize what is displayed on the Page Titles? Currently it shows View {Resource Title} - {App Name} or Edit {Resource Title} - {App Name}. Is there a way to customize that?

Paste from clipboard in FileUpload component

Since the FileUpload is based on FilePond, and FilePond does offer this feature, why doesn't it work with Filament? What can I do to add such a functionality. Anyone implemented such a thing before?

SpatieMediaLibraryFileUpload is ignoring relationship

Hi, I have a Section inside my form that has a defined ->relationship('profile'). Inside this section I have an Action modal to upload a photo to the UserProfile model. My problem is that SpatieMediaLibraryFileUpload seems to ignore the relationship and always tries to save the file to the parent User model which then fails. How can I fix that?