Filament

F

Filament

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

Join

Did anyone use filament-shield until it was deployed on the server?

I have a little problem where the roles dropdown is empty, there is no roles option when creating data but in the filament-shield menu (sidebar) there is a list of roles. because when I run it on local everything is fine, the roles dropdown list appears... I have tried: sudo composer install sudo php artisan shield:install...
No description

Repeater with existing data

```php Forms\Components\Section::make('Request Items') ->schema([ Forms\Components\Repeater::make('requestHasItems') ->relationship()...
Solution:
nvm, the code i have suddenly working. 😅

disable recordUrl

how global config in provider prevent table click row i try this ` Table::configureUsing(function (Table $table): void { $table...

Unable to sent email notification in Filament

My email notification not working in one of the project, including reset password, registration verification and custom email What i have done Tested my SMTP Change .env QUEUE_CONNECTION=sync...

Event Not Dispatching to other 'TaskUpdateModal' Component

I’m having trouble dispatching an event to another Livewire component (TaskUpdateModal) in my Laravel project using Livewire 3. The event dispatch seems correct, but the listener in the TaskUpdateModal component is not triggered, and I can’t figure out why. 1.In the TaskTable component, I’m dispatching the event like this: ```...

How to set domain for tenant in Login page ?

When using Multi-tenancy, I want each tenant to have a dedicated domain on the login page.

How to style each xlsx row in export action

i know there is getXlsxCellStyle() but its apply to all row, how to do it just for row i want to style?

Error on select.js getChoices options

after run composer update a select component is not working. Code: ` Select::make('customer_id') ->label('Cliente') ->getSearchResultsUsing(function (string $search) {...

isTableRecordSelectable is not working

I want to hide bulk select in certain records with the following conditions, but when it met, the bulk checkbox is still exist, what did I miss? ```php public function isTableRecordSelectable(): ?Closure {...

Change uploaded file permissions

I'm uploading a file (ssh_key) with a FileUpload element, in my Resource. However, I would like to make sure the permissions for the uploaded file are 0600, but I'm not being able to do so with "afterStateUpdated" method, which I though was the way to go, like this: ```php ->afterStateUpdated(function ($state) {...

Button Edit Action disappear after first click

Button Edit from my ViewResource header always disapear after first click (see video attached). On the client side I have this error on the console from Morph.js
TypeError: e.setAttribute is not a function
TypeError: e.setAttribute is not a function
. I can't figure out what's happened. It happens on other part of my UI. Also its only in production where I use FrankenPHP. The livewire/update request retuns a 200 with the button present in the Livewire response. Morph dom seem to fail to morph the dom accordingly ? Any ideas of this...

Making 2 version of uploaded image

What looked like a simple task become 2 day headache. I have a form, and one field for upload the image. When I hit submit I want to make two image from it. One would be resized (and this posed no problems) and second one which would be a thumb of the either uploaded image or resized. Tried to make it work doing some experiments, then I tried to google the solution, then Claude... One solution suggested using Intervention/Image, other Spatie media library, and all were so cumbersome, that I find it ridiculous. Any suggestions on how to resolve this, since documentation is so limited with examples of commands/arguments?...

Repeater - Safe Approach to Prepend Data

I can't seem to find a path with the Repeater component to safely add a new item to the start of the list. I have the two following approaches: ```php // Use internal Filament events to add the new item and move it to the start of the list...

Table Widget with InteractsWithPageTable

Good evening, I wanted to know if there is a way to make a table widget reactive to the resource table, similar to how it’s done for classic widgets using the protected function getTablePage(): string by importing the InteractsWithPageTable trait. I need to have an additional table (managed as a widget) on the resource that is reactive to the primary table. Thanks in advance to anyone who can provide help....

Call Resource Save Changes Button

Hello, How could I call the Save Changes button action from another action button ? Thanks 🙂...

Do I need to install a Laravel starter kit to use FilamentPHP?

Hi it's a while since I tinkered with this, for the life of me I can't remember if FilamentPHP has it's own login

ImportAction bypass FileUpload and pass filename directly

I upload files and convert them to CSV. They are stored on the server and a record is created in the database. I want to display an 'Import' link on each table row that passes the local filepath directly to the Import Action, rather than using FileUpload. I would like to see the modal that maps CSV columns to DB columns instead of seeing FileUpload. Is this possible?

APP_URL on multitenancy

im using domain aware tenancy and will handle multiple tenants so i will have like main.domain.com , sub1.domain.com , sub2.domain.com etc what should i add in the env app_url?...

Widget Owner

If I've got a table widget in a view page (ViewRecord)...how am I getting the model of the record I am viewing ? tried getOwnerRecord()...

How to turn-off client-side validation

Sorry if there is out there in documentation. I have tried to search but haven't found it. Is it possible to turn off the client-side field validation and just relay on server side? The client-side behavior seems to skip ToggleButtons, doesn't highlight the field red, etc. Would prefer just to use server-side as it's fast, it highlights all fields that break validation rules, etc. Any help appreciated!