Filament

F

Filament

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

Join

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

withoutGlobalScope in Table filter

I have a model that has a status column and a globalScope in the Eloquent model ``` static::addGlobalScope('active', function (Builder $builder) { $builder->where('status', 1); });...

How to allow guest users to access a Filament page while using multi-tenancy

The page was supossed to be resource (I has no more characters left), basically the guest can access the default page from my project where I'm using multy-tenancy. I believe the url will be like '{tenant}/' and it has to go to '{tenant}/avaiable-vacancies'

Make only specific repeater elements non-deletabel

Hi, I wonder if it is currently possible to make only specific repeater items nonDeletable ```php public static function getItemsRepeater(): Repeater...

Border Issue

```php protected function getAnswerCards(): array { $answers = $this->getRecord()->answers; ...

Css styling in theme not working

I have installed laravel 12 with latest filament. I have installed a custom theme. I am trying to apply tailwind css but it is not working. When I run npm run build it says that tailwind v4 is installed but filament uses v3. What is the issue?
Next