Filament

F

Filament

A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire

Join

Weird that my render hook fro appserviceprovider not work in other panel

i have this render hook working fine in admin and user panel but when i add another panel it does'nt center. I don't know what happen. I already install custom them in every panel. FilamentView::registerRenderHook( PanelsRenderHook::SIDEBAR_NAV_START, fn (): string => auth()->check() && auth()->user()->hasRole('Lecturer')...

Prevent table DeleteBulkAction to delete admin

does any Filament 4 built-in method doing like this? ```php return $table ->toolbarActions([ BulkActionGroup::make([...
No description

z-index problem on filters

Hi everyone! I have a weird "z-index" issue on table filters, and I can't find why... Has someone experienced that as well? ...
Solution:
So don't worry, I found the guilty one... Parallax comments plugin seems to apply overflow:hidden on .fi-ta-ctn...
No description

How to run a custom “validation” in editAction of an anonymous Volt Filament table component

I have a Filament table being instantiated as an anonymous Livewire Volt component. I want to try to test a connection to an API using the data in the form during an attempted edit from within recordActions(EditAction::make()). I want this to take place after the data passes standard validation rules. I have found 2 hooks that seem possible: afterFormValidated and mutateFormDataUsing. I was unable to access the $data var in afterFormValidated. How do I properly get the edited form data after validation, and if necessary abort the operation with validation errors on the form?...

Get rid of "Columns" icon on table

Weird, and silly question, how do i get rid of this icon?
No description

Error ao salvar imagem, em produção

In a local environment when trying to save the image it works, but in production it gives the error as shown in the print, but I have already seen the file permissions, they are all the same as in my location, I have already run php artisan storage: link, I don't know what else to do.
No description

RepeatableEntry not updating after updating Relationship

I have a basic repeater that uses the documents relationship like so: ``` RepeatableEntry::make('documents') ->schema([ TextEntry::make('name'),...
Solution:
Something like: $this->dispatch('refreshData'); // In your Livewire page class...

getFiltersTriggerAction does not exist on Widget

This is fresh install of laravel and filament, creating widget and tested it, then this exception was thrown. Any help would be appreciated, Thank you!
No description

Is there a way to enable the user to directly edit the html in richEditor?

Like in tinymce and stuff where i can switch directly to html mode

Dropdown Auto Placement()

I have issue when i use this: ->dropdownAutoPlacement() the error is: BadMethodCallException...
Solution:
add ^ "^4.0"...

/livewire/update not called

Hello, I'm having a strange issue with latest Filament v4 version, on any of my pages, looking on browser Network tab i dont see anymore call to /livewire/update Any idea why ?...

—generate with models in subdirs

I noticed this: If I have a model App/Models/Subdir/Mymodel and I create a resource with make:filament-resource Subdir/Mymodel —generate, it creates it as Resources/Subdir/Mymodels. It would be nice to avoid some way the creation of this Subdir, or have the control to put the resource where I want it....

Single Login Page

There is way to make a single login page for 2 panels in filament 4??

Argument #1 ($form) must be of type Filament\Forms\Form, Filament\Infolists\Infolist given

It's been a few months since I've done any Filament dev work and I'm back in it and running into this error when trying to add a form to a Page class. I feel like I've run into this before and it was some little quirk that was causing the issue. ``` use Filament\Forms\Form; use Filament\Pages\Page;...

Closure ->visible(Get $get) in a form inside a repeater always returns the value of the first row.

I have a form in the repeater (with a relationship). In this form, I have a select field and a "reason" text field that should only be visible if the select value is "Other." `Repeater::make('dailySession') ->relationship() ->schema([...

Custom Action on section with relation not doing anything

First some background information... I have a model that references another of the same model. This is editable in fillament by storing the schema components in a seperate function and then imported in both the main schema, and a section schema with a relation. This works great! Now i wish to create a custom action to copy the form data from the current form into the relations form. So i added an action on the section to copy the form data into the relationship form. This however does nothing at all... When i click the action it does load, it does send a request over the network but nothing happens. I added a notification for troubleshooting, and it never shows... However, as soon as i remove the ->relationship from the section, the action does trigger....

How to autoplay a video or audio without the user interacting with the page?

I have a music player built using Filament, it’s a custom page inside the admin panel. The issue is: when the page first loads, I want the music to start playing automatically, but it doesn’t, because the browser blocks autoplay until the user interacts with the page. However, I’ve noticed that YouTube videos start playing automatically as soon as the page loads, even before I interact with anything. So it seems like it should be possible somehow....

--generate asking for title attribute

Stupid question, but can we prevent this or set a default attribute in the command and set NO as a create a view-only mode ? Instead of having to type out this. I usually do lots of models and then generate resources after, and this is a pain compared to v3.

Validation with afterStateUpdatedJs()

Hi everyone, how can I hide validation message when option is selected via afterStateUpdatedJs(), to reduce server call? Similar this ```php ->afterStateUpdated(function ($livewire, $component) {...

email verification and canAccessPanel problem

I have enable ->emailVerification() on my panel provider, and implements MustVerifyEmail and FilamentUser on my User model. When I return $this->hasVerifiedEmail() from canAccessPanel() it shows 403 instead of email-verification page, when I return only true it display the page correctly. What should I need to do to resolve this, I want to use hasVerifiedEmail in the canAccessPanel...
Solution:
emailVerification() already check what I want, so closing this. thanks for your quick reply 👍
No description