Filament

F

Filament

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

Join

Customize registration logic

Hi, I want to change the account registration logic to provide a verification code when registering. I have the field itself added and the handling of this field done, but the problem arises when it wants to verify this code. If the user enters a code that is wrong, or the code is not assigned to his username, at that point it rejects the registration and does not make the account. Otherwise, the account should be created. I have such a code: ```php protected function handleRegistration(array $data): Model { $username = $data['username'];...

Notification sent twice

Hi guys, I have a little issue on my filament app. I have a livewire component with an action to insert a record....
Solution:
Fixed my issue by caching the icons 🤔
php artisan icons:cache
php artisan icons:cache
...

Is it possible to have Form and Table in the modal?

I have a modal that contains a form and a table, I wanted to implement it here in Filament however I have hard time implementing it, I wanted to have the forms for the upper part then Tables below the forms and that form and table is inside the modal....
No description

Build an app-store

Which is the best way to build an appstore where - some apps are free for registered use - some apps are not free - approved developer can upload their app, decide the price ...

When creating a custom livewire component, can I use the default styling for form components?

- Tried in 3 different laravel 11 projects. - I have the full filament panel package installed - Created the custom livewire component from this page of the documentation: https://filamentphp.com/docs/3.x/forms/adding-a-form-to-a-livewire-component...
No description

Laravel permissions

I'm looking for the best way to manage the super admin role. Currently in my User resource I have this : ```Select::make('roles') ->relationship('roles', 'name') ->multiple()...

Laravel permissions / shield

Hi, I'm playing with permissions + Shield. On a resource, I want a role to be able to see a text input but not update it. I can disable the field. But do I have to do a server-side check at update time? Or is there another way? Thanks 🙂...

Trouble with a read-only field for a model relationship

I have a model SystemLog with a relationship retryingUser. When I save the form - I'm getting the error Add fillable property [retryingUser] to allow mass assignment on [App\Models\SystemLog]. Even though I've got the field set as disable, readOnly and dehydrated = false....

Filters for a resources relation are applying for every resource of the type

I've got a resource which has a relation. The relation has a select filter, with a default filter. If I navigate to the view page for a resource, and change the filter for the relation table, and/or add a new one, the filter changes are applied to every single relation table for every single one of the resources. For some reason, they're global to every instance of the relation....

Help FileUpload

Hello Filament team, I'm using ImageColumn to display a preview of an uploaded image (via FileUpload) that's stored on the public disk, inside a subdirectory (hero/). I’m running into a strange issue. Goal :...

Reordable not enabling on relationship repeater

I'm building a nested relationship and i'm having a issue where the reordable settings are completely ignored if i set a relationship on the repeater field. Each model involved is using the spatie/eloquent-sortable package. Right now i have Page model which has a series of ContentFields attached to it through a hasMany relationship ```php public function blocks(): HasMany...
No description

Search modified select field

Hello, I have the following Select field, saving to the database as JSON: ```...

afterStateUpdated not called in fileupload

i'm trying to use the afterStateUpdated on a fileupload in an action but its never called. ```php FileUpload::make('file') ...

Admin panel register with verifyEmail

When user registers I would like to redirect it to verify email page - I can do that with RegistrationResponse. But if user manually enters the /admin part he gets 403 error. Is there a way, to force redirect user to email verification page if his email is not verifed when he logs in? Thanks!...

419 error on login ONLY when session driver is "database"

After reading through the other posts involving 419 errors on Filament, I have not been able to resolve this issue. When setting the session driver to database, I get a 419 error on logging in, but if I change it to file instead of database it works perfectly fine. A few things: my users table uses uuids instead of an int, but I have updated the session table migration accordingly, migrated to a completely fresh database, and verified that the database connection works by using tinker to insert a new user into the database. ...
Solution:
sorry for the delay, I was working with a colleague on this, and we discovered that the session migration had the 'id' column set to 'uuid' instead of 'string' and that was throwing off everything, preventing the session from being stored properly, and then couldn't be retreived either.

Alignment in a cell is right for href link

I try to do something like that in my table cell: return new HtmlString( '<div class="flex flex-col">'. '<div class="text-primary-600">'.$clientDisplay .'</div>'....

saveRelationshipsUsing on custom page form.

I have a custom page with attachment relationship like ```php public function form(Form $form): Form { return $form->([...
Solution:
are you using this in your saveAction? ```php $model = YourModel::create($this->form->getState()); $this->form->model($model)->saveRelationships();...

Form component visability base on select value not working.

This is the select
Forms\Components\Select::make('type')
->live()
->required()
->options(AssessmentTypes::class),
Forms\Components\Select::make('type')
->live()
->required()
->options(AssessmentTypes::class),
...

Upload field saves as a array after saving 2 times without changing anything

So when when saving the first time, it stores it correctly, like article_images/20250428_123231.jpg however, when I save it again, without changing anything about the resource, it gets stored like {"effa7623-0b08-4e64-9c1a-0449cb63e866":"article_images\/20250428_123231.jpg"} the code I have for the file uploader is ```php FileUpload::make('image')...
Solution:
Update on this, it seems that the boss man was able to figure it out. Thanks for the help!!...

Livewire form field not included in parent form's data

Hi, I have a big form with several repeaters, and each repeater has several fields, and it's got so big that, whenever an update occurs, it takes up to 2 seconds. I have moved the repeaters into individual Livewire component fields. The issue I'm having is that the data is not accessible from the main form upon submission. To simplify the question, I'm going to use this test form: ```public function form(Form $form): Form...