Filament

F

Filament

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

Join

Custom action based in Edit

Hey guys, I'm new to filament and I want to create a custom action to manage user contracts, n to n, I'm using Repeater for this, I can save, I would like to be able to edit in this same action, any suggestions.
No description

Override configureUsing ?

If I have a service provider with a boot method like: ``` public function boot() : void { CreateAction::configureUsing(function ($action) {...
Solution:
slideOver(false) should suffice on the actually action

Open and view stored file in 'local' from FileUpload components

Hey, i store files like this ``` FileUpload::make('files') ->multiple() ->storeFileNamesIn('file_names')...

TextInput Autocomplete doesn't works

I have a TextInput field where I need to disable autocomplete. I added ->autocomplete(false), but it doesn’t work in production; the field is still populated when editing a record. Is it possible to have the field fill as empty if it’s null (without using the browser’s autocomplete capability)?

Connectivity issue with FilamentPHP.com IP Address.

On the left its filamentphp.com, and on the right laravel.com. Pinging for 1 hour....
No description

Relationship with a relationship after create?

I need to add some relationship data to a relationships relationship. For example: Order -> products -> customisations In a duplicate order function, We have the repeater loading which loads the products relationship, I want to then clone over the customisations relationship. We don't seem to be able to use mutateRelationshipDataBeforeCreating to assign the relationship values.. and theres no record at this state, it's almost like we need an afterCreate function on a repeater relationship?...

Multiple FileUpload

Hi folks, when I have a multiple FileUpload, I want the images to upload in the correct order. Means for me, I drag&drop 20 images into the upload and the first should upload at first and so on. Now it seems they upload in random order and I have to sort them again after upload and saving them. I hope that make sense....

Redirect to last URL after login

if i logout from the a page and then login i will endup in the dashboard instead of that page. EX: logout from https://test.com/admin/products/1/edit?activeRelationManager=0 and then login, i end up on the dashboard. Before(in v2) it used to be directed back to the requested page(https://test.com/admin/products/1/edit?activeRelationManager=0) i went throught the upgrade guild and all but couldn't find anything.Any kind of help would be much appreciated

How to validate Select relation field?

Hi guys, I have 3 simple models: Organization, Store, Contact. Each Contact can be assign to Store only of his own Organization. I want to use Select field with multiple option, but I need to validate that the stores saved in belongs to organization of that contact. ```php Forms\Components\Select::make('organization_id') ->label(__('Organization'))...

action group icon

Is there anything out the box to change the icon from an action group, (a chevron instead of the dots). Before I go down the overriding of the views? I cant see anything in the docs regarding this...

manually refresh table content

Hello Filament world Is it possible to have an action button on the filament table for refreshing the content manually I know there is ->poll('10sec') but it's not suitable for my need Thanks...

Custom page with table and filters

Hello, I'm having an issue with my custom page where I use a table and table filters, for some reason the applied filters does not end up into my url Here is how I use it:...

navigation

Hello all, Please I want to show 2 buttons (create and statistics) on top of list page, I try getRecordSubNavigation but they appear only in edit and view page, is there any way to show them in list page?....
No description

When i upload file and click to download its writting that file doest exist

there is my code:
Forms\Components\FileUpload::make('agreement')
->label('ხელშეკრულება')
->required()
->downloadable()
->nullable()
Forms\Components\FileUpload::make('agreement')
->label('ხელშეკრულება')
->required()
->downloadable()
->nullable()
...
No description

Form Component : Size avatar in Fileupload

Hi all , i have a question . im using fileupload and set avatar mode . is there a way to resize to make it a bit bigger ? because default size is small
Solution:
You have to do two things to change the size, the first is to change the size of the field container like this: ```php FileUpload::make('avatar') ->avatar()...
No description

init upload programmatically on FileUpload component

Hi everyone, I am creating a custom field and I want to get the following behaviour: button -> click -> event -> listen event -> start upload programmatically The problem is in the last step, is there any way to do this? I have my button that sends an event with a file path, can I start the upload in the input with that file path, like the user had drag and drop it?...

Unable to access pivot data on resource when using Multi-tenancy

Hi, I've added a pivot column is_active to the relation between users and tenants. But it's value seems inaccessible on the UserResource ```php...

Dynamic Filter

I want to create dynamic filter like step filter example i have table pet and each pet have type and each type contain a group of species so what i want to do here to allow user to choose the type first then the species appear to him i tried that concept ``` ->filters([ SelectFilter::make('pet_type_id') ->label('نوع الحيوان')...

Filament File Upload Custom Relationship

Hello, I've been using Filament to build a Dashboard that has a file upload, I've searched through the documentation and github and could not find an answer so I'm hoping I will find one here. I want to have a file upload that will create a new eloquent model and save it to the database....