Filament

F

Filament

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

Join

Action works fast but modal window hangs?

```Tables\Actions\Action::make('Run') ->action(function ($record) { $service = new MyService(); $result = $service->myServiceClass($record->id); // dd($result); up to here is fast, the action is ready...
Solution:
I think i found it:
'debug' => FALSE,
'debug' => FALSE,

Dilemmas during installation.

At the very beginning, the documentation says that we need PHP, Laravel and Livewire to install Filament. 1. However, I'm reading a lot of forum posts that you only need to install Laravel beforehand - Livewire installs along with Filament. How is this actually the case? Should I install Livewire before installing Filament? 2. After installing Filament, the second step is to create a user by php artisan make:filament-user, but the users table does not exist. There is no mention at the beginning of the documentation how to create the users table, should I use Laravel Breeze?...
Solution:
1. Livewire gets installed by filament if it's not installed already because filament has a livewire as required. 2. No, you don't need breeze or ant other starter. Laravel comes with users table migration. It seems you lack skills first in laravel so I would suggest learning at least basics of it first....
No description

Filamentphp.com connectivity issues

Is it just me, or does the filamentphp.com website have frequent connectivity issues? I haven't been able to access it for half an hour now. 😦

Using Sushi with Filament Table and refresh the data

Hello everyone! I'm trying to make a LogViewer in a page via a modal. To do this, I was thinking of using Sushi to transform the log rows into an Eloquent array so that I could use the Filament tables. So I made a Model and a Livewire component with a Table....

Form action

Filament Forms & Actions: How to open to external URL with new browser tab after a form has been filled ``` public function form(Form $form): Form { return $form...
Solution:
``` <script> document.addEventListener('DOMContentLoaded', function() { Livewire.on('openInNewTab', url => { window.open(url, '_blank');...

Database Notifications do not pop up?

I switched to database notifications from the regular ones, and the notifications do pile up inside the sidebar (after every polling interval) but they don't pop up. I would like them to pop up. How can I do that?
Solution:
Yeah at first I added send() but it would loop over the recipients and the pop ups won't stop so just added the whole code segment outside the loop. It's a little code duplication, but works!

Shield: RelationManager or ManageRelatedRecords

How to implement permissions on RelationManager or ManageRelatedRecords with shield ? I can see only permissions on resources and pages in the doc....

Repeater - deletable except for first item

Is it possible to have repeater items have the delete action except for the first entry? In this example, a job application with a repeater for employment history but at least one is required. This is a form in a standalone Livewire component and not in a Filament panel. I'm adding an empty entry to the repeater in the component's mount() method and that works fine. I'd like that one to always be present but if they accidentally add a one (2nd, 3rd, or 17th) without meaning to, there's no way to remove it and those fields fail validation as required. So can you either disable delete or hide the delete icon for that first one? Or, if that's not possible, is there a way to filter out fully empty entries before they go through validation?...
Solution:
->defaultItems(1) ->minItems(1)...

Keep table filters on url on relation manager

Id like to keep the table filters on url on relation manager. any ideas?

Suffix Action in Repeater Field

hi, I have a TextInput field with suffix actions to toggle readonly. it works if directly in a resource form, however if inside a Repeater or Builder field it doesn't work and I don't get an error message. This is the field definition Can anybody tell me what I am missing?...

Error in S3 upload

I have a field of my bbdd that saves the url of my image. They are saved in S3. But in the bbdd I save the cloudfront url. How can I make filament work with this url in the fileupload component?...

Cascading form is losing set value

I have a form that is using ->reactive() with ->options() where the options are set based on the value (Get $get['otherfield']) in another field. Basically there are three enjoined fields, where the prior field can potentially narrow the options in the latter fields. I am changing the options simply to make it easier to find the values in the second and third fields. It behaves similar to a Country->State->City type list, where initially the 'State' and 'City' fields include an exhaustive list, but when Country is selected, only states and cities in that country will be in each field and so on. (in my case they are Continent->Zone->Instance - it's a tool for Warcraft 'item needs') The problem occurs when the options list 'changes' when a value is set for one of the dependent fields. Even if the value for the dependent field exists in the reduced list of options, the set value disappears. This is a problem especially because the setting of the Continent triggers a change in the 'Zone' options, when loading an existing record, Continent will be set but Zone and Instance will not be set....

can change for this label?

please share me any solution for change this label.
Solution:
On the list page override breadcrumb method
No description

Is there a way to move a getFormActions button?

I would like my orange button to be next to the orange button, is this possible? in this sequence: orange button - green button - cancel button...
Solution:
you can override the getFormActions() and choose the order of the actions you want
No description

Import Action - "unknown column '' in `where clause` "

Hello - I am trying to get this importer to behave... I am using it to import records into a Relationship Pivot Table. The relationship is a belongsToMany relationship - and knowing that it will not play nice on that end, I have made up a Pivot Model to interact with. Here is the pivot model: ```php...

Wizard Form disable next/previous

Is there a way to programatically stop going to the next or previous step based on some conditions? i know you can use things like:
->disabled()
->disabled()
...

ActionGroup and modal

Hello, I've been trying for a while to get an action group on a model, but I'm not succeeding at all. Does anyone have any ideas on how to do this? Filament\Actions\ActionGroup doesn't seem to be compatible. Thank for your help!...

Advanced Table Plugin global views

Using Filament plugin Advanced Tables. I have a user that is registered to two teams. I create a view called SimpleView on one of the teams making it global and public. I approve that view but it does not show on the user's other team. Why and how should I resolve?

User Relationship with Permissions

I want a relationship that links to the Users tables, but that only returns a set of users with a certain permission. This is what I've got so far: ``` public function assignee(): BelongsTo {...

Is it possible to make a custom action behave/look like as submit button?

Sorry if the title makes no sense. When you upload files to a filament form, the 'submit' button changes (The label changes to 'Uploading files...', the button gets disabled and a loading indicator is added) Is it possible to have the same behaviour with a custom action?...
Solution:
FWIW, I found a way to do this 1) Add an id to your form ```html <form id="my-form-id">...</form>...