Filament

F

Filament

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

Join

filament issue

Target class [cache] does not exist when i run filament project

How to add javascript to a custom widget

I created a custom widget, How to add javascript to it, When I add it in the blade view it doesn't w

dataLabel error in Apexcharts

First and last column do not show dataLabel
No description

Slow table load and searching after adding custom action from impersonate package

I recenly add a package for impersonating user : https://github.com/stechstudio/filament-impersonate i notice that this package add a custom action to the table, but since i add the custom action to the user table the request time is increased from only 430 ms to sometimes 10 second...
No description

Halt on beforeSave is preventing actions within notification to work.

In essence I'm trying to add a check to see if a model instance exists with a 'is_home_page' boolean flag is true prior to updating or saving. I'll provide the current WIP code below for a clearer picture but in essence the notification pops up with the actions however clicking on them don't work but using the url example from the docs works perfectly fine. If anyone has any insight I'd love to hear it. Cheers! ```php protected function beforeSave(): void { $existingPage = Page::where('is_active', true)->where('is_home_page', true)->first();...

Filters On Sidebar

Hi folks, I was wondering if something like this is possible in any way with Filament? (paid plugin, view) I want to add filters to the side, based on the most popular attributes....
No description

Spatie Translatable with spatie laravel settings

Is it possible to run spatie translatable package with spatie laravel settings. And if is it possible, how?

Use cluster for user profile page

Hi I'd like to use a cluster for my profile settings page. The app I'm working on has a lot of user profile fields and I'd prefer to break them up with a cluster (sidebar) instead of tabs. Does anyone know if it's possible? When I specify the cluster at the top of my extended EditProfile class it breaks the routing. I haven't been able to get it to work....

Use HeaderAction to upload file in FileUpload.

Assume I have a fileupload component in a form on my page. By pressing a header action, is it possible to upload that file (to the specified disk)? Generally when you upload something, before you press create, that file is sitting in the livewire-tmp directory, and its only when you press "Create" that the file goes to its proper directory. In this case, we dont have a create action or a model.

Disable all browser validation

Is there a way to disable ALL browser validation from all form fields? like a global setting? Not only required, but minValue, maxValue... all possible validation errors...

getStateUsing() called 3 times on first load

Hey there, I just investigated some performance issues and noticed that each table that uses getStateUsing() has this function 3 times called on loading the table. So each query inside gets also executed 3 times! Why? Simple Example: ```php Tables\Columns\TextColumn::make('products')...
No description

Showing/Hiding buttons based on URL paramaters.

I'm using TrashedFilter and added restore button, but now I want to only show restore button when the value of param tableFilters[Trashed][value] is 0 and I want to dynamically hide/show this button when selecting new value from dropdown. How would I go on about doing this? JS? Got a bit stuck here now. Same thing for example with DeleteBulkAction button, when I'm on deleted record I want to hide it, since we can't delete the deleted records anymore for example....
No description

Public method [mountAction] not found on component when adding an action to Livewire component.

Hi. I'm trying to add an action to Livewire component like mentioned in documentation : https://filamentphp.com/docs/3.x/actions/adding-an-action-to-a-livewire-component. I've got the following error : Unable to call component method. Public method [mountAction] not found on component. `public function goLiveAction(): Action...

Fill form with fallback locale

Hey, in the past when a form has only the fallback locale set, the current selected locale was filled with the fallback locale. Now all the fields are empty and not filled with the fallback. Is this a bug or did I miss some settings?

keep a button for create in view getRelationManager()

hi gus, how can i keep a button for create a new form in getRelationManager but in a view??
No description

Is it possible to add the ->requires Confirmation() method modal using the Button blade Component?

Is it possible to add the ->requires Confirmation() method modal using the Button blade Component?

Why wire:dirty not working with <x-filament::> components ?

Hi guys ! I'm writing some custom Livewire components and I'm using some Filament blade components inside of them to keep the UI consistent. I'm trying to use wire:dirty on a Filament button but it doesn't work. It works on a basic HTML button, do you know why ? ```js...

Soft deleted records don't show after applying filter

I'm having weird problem with filament, I have 4 soft deleted profiles and added a filter to show them in ProfileResource, but none are getting shown in table, if I dd the query it's also showing correct SQL for return $query->onlyTrashed(): Sql dump: `` "select * from profiles where profiles.deleted_at is not null and profiles.account_id` in (?)" // app/Filament/App/Resources/ProfileResource.php:327...
No description

Is it possible to open a relationshipmanager in a modal from the list records view?

I want to open a relationshipmanager of a record in a modal from the list records view. Is this possible via a table action?

How to use Markdown Editor / Richeditor in a Blade file?

How can I use the markdown editor / richeditor in my custom view page?