Filament

F

Filament

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

Join

Bulk action error after updating

Hi, I updated filament from v3.2.135 to v3.3.7 and now the bulk actions in tables have errors. When I select a record, the bulk actions don't appears and shows this error on the browser console: ```...

my filament file upload stuck at 100% like the picture i send

i see that when the indicator reaches 100%, an error like in the console section appears. i am using filament 3 and laravel 12
No description

Issue on laravel filament file upload : when the length of filename is long

When the file name is like this "farming-agriculture-field-with-copy-space-blue-sky-overgrown-grass-fenced-isolated-farming-area-farm-with-lush-trees-yellow-green-grass-looks-beautiful-rural-countryside-nature_590464-74263.jpg", I got an issue "Unable to retrieve the file_size for file at location".
No description

Filter form on the sidebar

I want the filter form on the dashboard page to be on the sidebar. I have tried creating a custom layout, but then the Using $this when not in object context error is thrown. I have tried render hooks, but I can't get it to work. Any help?

How to exlclude user role (customer) in relation manager?

The case is want to exclude user customers in the list I tried this but not working whole code...
Solution:
Solved: instead I add this to the table ->modifyQueryUsing(fn (Builder $query) => $query->where('role','!=', Role::Customer->value))...

What's the correct approach to load filament styles in a frontend page?

I have created a Livewire full page component rendering a form using Filament's form builder as per the docs: https://filamentphp.com/docs/3.x/forms/adding-a-form-to-a-livewire-component. What's the correct approach to load the necessary base styles for the form? My layout file includes the following section in the head: ```...

How can i disable livewire update POST request to {{domain}}/livewire/update

I have tried searching for disabling it in filament docs, searched panel functions, searched whole internet and asked AI agents but could not find the solution. How should I disable it. I have simple panel with one resource, and i am in list view page....
No description

Restrict non filament panel user, accessing filament admin panel.

I am using laravel v11, with filament and livewire, i have admin panel using filament while normal user can sign-in without filament. Problem is when Admin user logs out and normal user logs-in, it redirect user to domain/admin page which is filament admin panel and shows 403 error. What i want is to redirect normal user to domain/dashboard page which is not a filament page or resource....

Listen to Theme Switcher Event or Read the Current Theme Mode State

Hey, I would like to know how a widget (a ChartWidget) is aware of the current theme mode. The goal is, I want the chart border color changes depending on the current theme mode. If it is dark, I want to use lighter colors for better contrast....

$shouldRegisterNavigation on CreateRecord

Hello, How can i make my CreateRecord from resourse to use $shouldRegisterNavigation so I can add a custom navigation item ? I've tried addming in my AdminPanelProvider:...

Form select relationship help

I have a user which can have a resource_no, that points to the resources table however we do not use the ID, it points to the resources no column, however my select inserts the ID, can anyone help?
Select::make('resource_no')
->relationship('resource', 'name'),
Select::make('resource_no')
->relationship('resource', 'name'),
...

Refresh data after Job has finished

On my view page I have a header action to generate a video thumbnail. This action triggers a Job that is executed asynchronously through the queue. Now I'm looking for a way to refresh the data on screen as soon as the Job has finished. I'm dispatching an event inside the Job class, but I can't seem to figure out how to listen for this event inside my Resource file. Note: I'm not that familiar with Livewire....

Table pagination issue

Hey mates i am new on filament and creating a table with pagination but i didn't get pagination which i need , its only showing prev and next button let me show you my code is : public function table(Table $table): Table...
Solution:
Yeah mate. Its working. Thank you very much. 🙏

toggle button going over boundaries

Did anyone cross with this kind of visual bug?

Help me add data to a repeater field using a modal which is a table in a Livewire component.

Hello! I'm working on a school project, and this is my first time using Filament. I managed to create a repeater field, where clicking the 'Add' button opens a modal containing a filament table in a Livewire component (see the image). Now, I want the data to be added to the repeater when I click the 'Select' action in the table. Unfortunately, I don't know how to achieve this. Could anyone please help? (here is the table in livewire code) ```php return $table ->query(vattu::query()) ->columns([...
No description

importcsv.php - 255 attempts doesn't get deleted in DB

Im using the default job of Import Action but im encountering a problem. When a import job reaches 255 attempts, it doesn't get deleted and resulting to other job/queues being stuck with it Already extended the class but nothing happens ```php class CustomImportCsv extends ImportCsv...
No description

Nginx - Auth Request

Hello everyone, I think the auth_request module for nginx is not supported in the nginx version installed with plesk. Is there a similar solution on the nginx side with plesk? Or can we solve the same situation with Apache? Can anyone enlighten me if they know. ...

How can I access `Filament::getTenant()->name` within the `filament.admin.logo` view?

Is there a way to use the Filament::getTenant()->name in filament.admin.logo view?

Create record navigation active state

Hi, is it possible to modify the resource active state? I have a custom NavigationItem for the create page and the other tab is the resource page, but when I click on the custom navigation item the resource tab is also active. How can I fix this?
No description
Next