Filament

F

Filament

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

Join

Is there a way to stop the reordering of options for Select?

I need a Select component which allows select multiple options and store the order of selected option, in my example I have Dish and Ingredient models, Dish has belongsToMany relation to ingredients. Pivot table dish_ingredient has additional order column. Select component configured like this ``` Select::make('ingredients')...

Display the delete item option in Select Multiple

How can I display the X to delete the items from the select? I don't know why but it doesn't appear here. I can only remove an item by pressing Backspace on the keyboard. Thanks
Solution:
->selectableplaceholder()
No description

Questions regarding the use of 2 filament panels and redirections.

Hi, I'm starting to test with Filament, and I'm trying to make 2 panels (admin and app), it turns out that the admin, is the default of filament, it's working fine. But I have some doubts about the app. The first one is about redirection, when accessing http://panel/app everything works fine, but when removing /app I have a not found problem, doesn't filament give me something to automatically redirect to /app? At the moment I've solved this by just adding this to my web.php. ```php...

How to prefill from foreign key address

What I did: im trying to prefill the leaverequest with the employees_id that is associated with the users_id My issue/the error: it wont get the employees_id to be prefilled and to be inserted in the database and it returns a null value instead of getting the proper employee_id for the leaverequest Code Forms\Components\Hidden::make('employees_id')...

Classes and closing tags are repeating in custom extension TipTap

We've created and extended some extensions for the #awcodes-tiptap-editor. The problem we're facing now is that everytime we save the class is added again to the already existing element. Also when we save it apears it adds multiple closing tags at the end. It appears it does this only for the table tags. Is this a known problem? If so, how can we fix it? ...

glicthing when using after state updated to update different fields

I’m not sure why, but something weird is happening. I want whatever I type in Name to show up in Slug automatically. But when I try to type in Address, it keeps getting erased on the address — like Filament is updating it and overwriting what I type.

FileUpload visibility('private') and original filenames

We are using ->visibility("private") and ->downloadable() + ->storeFileNamesIn(). Everything works ok, but the download filename is the randomly genrated file name, we would like that the signed url preserves the original file name. Is there a way to setup the content dispoisition ?

Notifications UI

Sir. Is there any possibility to update filament notification like sweet alert 2 If yes please suggest the roadmap to accomplish it. ...

Filament has not been installed yet: php artisan filament:install --panels

hi, i just installed filament on a lavaarel project. when i try to create a user using php artisan make:filament-user the terminal says Filament has not been installed yet: php artisan filament:install --panels and i just installed that. how can i solve this problem?...

Default value for multiple select field. But it needs to be hidden

Hi together, I have the models Company and CompanyType which are linked via the pivot model CompanyHasCompanyTypes. So in the EditPage I have set up this SelectField: ...
Solution:
Use the mutateDateBeforeCreate()/mutateDateBeforeSave() to fill in the data based on the role instead.

Database Notifications json contains

The laravel illuminate DatabaseNotifications apparently has functionality to query whereJsonContains, is there an equivalent with the filament one? As I need to check if some data exists in the json 'data' field but not sure how to query it properly

How to customize

Hello, i just started filament project, and have trouble to cuztomize my filament dashboard. eg, this one, i want to put it outside the menu and combine them...
No description

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...