Filament

F

Filament

A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire

Join

Select Field Relationship have no limit

I have over 1M record for projects table. when I use the code below it will get all the projects without any limit for it which making the website not responding. ``` Forms\Components\Select::make('project_id') ->searchable()...

Hi, Filament fails to register page route - route not defined. Fresh page created by artisan command

Everything works on local development. It fails on the server (env='stage'). No policies created to new page. Is there anything I should run on environment different than local to make it works? Help me, going crazy... 😄 K....
Solution:
Found the problem: files permission disallowed to remove old and recreate cache files (filament:optimize etc.)

Dynamic sidebar

I'm using Filament 3 and want the sidebar to include a "Channels" group with dynamic items loaded from the database (one per active channel of the authenticated user). The rest of the navigation should still work via discoverResources(). The problem is that I can’t access auth()->user() inside panel() because the user isn’t authenticated yet, so I can’t generate those items there. Is there any recommended way to add user-specific dynamic items without breaking the default discovery and without overriding everything with navigationItems()?...
Solution:
I finally found the solution. I used ServiceProvider instead of Middleware, and it worked perfectly. Here's the code. ```php...

Multitenant : Issues persistFiltersInSession on

My User can have many companies , Imagine I have filament table with filter department . and my client filter on Company A . then he switch company to Company B . obviously because of persistFiltersInSession , department_id still in session where that department not exists on Company B . ...
No description

How to test modal footer actions

The problem I'm facing is how to test these actions using the Livewire/Filament testing utilities. When I try to use assertActionExists('markAsCompleted') directly after the main modal is mounted, I get errors like: Failed asserting that an action with name [markAsCompleted] exists on the [App\Filament...] page. What is the correct way to test actions defined within extraModalFooterActions of a Filament modal?...

Filament Error on A2 Hosting: “An unexpected error occurred”

I'm experiencing an issue when deploying my Laravel + Filament project on A2 Hosting (shared hosting environment). After uploading the project, I get the following error: An unexpected error occurred ...

Export Action not working in production on queue --- local working fine

everytime job fail with this error
------------------------------------------------------ TypeError: Cannot assign __PHP_Incomplete_Class to property Filament\Actions\Exports\Jobs\PrepareCsvExport::$exporter of type Filament\Actions\Exports\Exporter in /workspace/vendor/laravel/framework/src/Illuminate/Queue/SerializesModels.php:92 Stack trace: #0 /workspace/vendor/laravel/framework/src/Illuminate/Queue/SerializesModels.php(92): ReflectionProperty->setValue()...

Mask for TextEntry

Surprisingly there's no mask for TextEntry. Is there are way to do it?

File Upload Fails with 401 After Switching to Octane

After switching to Laravel Octane, Livewire file uploads are failing with a 401 Unauthorized error. Everything worked fine before. I’ve tried changing the session to Redis, exempting the upload route from CSRF, setting SESSION_DOMAIN, verifying cookies and tokens are sent, and updating Livewire. Octane has been flushed and reloaded, but the issue persists. Any ideas on what could be causing this?
Solution:
@toeknee Thank you, It worked after adding the trustProxies Middleware inbootstrap/app.php. ```php ->withMiddleware(function (Middleware $middleware) { $middleware->trustProxies(...

Can I search relation's values when using the relationship manager to attach items to a resource?

For example I have have an auction model and want to be able to attach products to the auction, but would like to be able to search the relations of the product for example it might have a manufacturer with a name field. I have tried: ``` Tables\Actions\AssociateAction::make()...

How to pass parameter to list page

I want to pass channel paramter and get on list.. i add here ``` public static function getPages(): array {...

Export not working when using Auth0

I'm trying to export data, nothing fancy or complicated but I'm getting the following error
Auth0\Laravel\Guards\AuthenticationGuard::login(): Argument #1 ($credential) must be of type ?Auth0\Laravel\Entities\CredentialEntityContract, App\Models\User given, called in vendor/laravel/framework/src/Illuminate/Auth/AuthManager.php on line 339
Auth0\Laravel\Guards\AuthenticationGuard::login(): Argument #1 ($credential) must be of type ?Auth0\Laravel\Entities\CredentialEntityContract, App\Models\User given, called in vendor/laravel/framework/src/Illuminate/Auth/AuthManager.php on line 339
...
Solution:
I ended up using your Excel Export plugin 🙂 @Dennis Koch I commented out the lines that were failing and the file was being created and saving correctly but now the notifications were failing :/

custom wizard·

Hi guys I want to custom wizard. I dont want a default wizard header instead i want a progess bar witch circle, each circle representative for a step. so I want to ask how to custom that and i want to change the back button and the next button example i want to move back button on the header bar with circle progress bar , I couldn't find it on the document...

Is there a way of making database notifications pop up like a standard notification?

I'm using echo to sed these live, and i'd like them to pop up onto the page and also go into the notification overlay
Solution:
I don't think so.

Table on livewire component is involuntarily refreshing component on Action

I have a filament Table in a livewire component, with a simple Action: ```php public function table(Table $table): Table { return $table ->query(/**/)...
Solution:
I don't know what kind of trigger the action fires that causes the component to refresh
It's a Livewire request. Livewire components rerender on requests...

Filter Relation Manager records by Query string parameter

I have a Edit page with a relation manager I want to filter the records in relation manager based on a value given in the query string. I notice that I can't access from here, but I can from the Edit Page. Any idea?

Admin Model instead of User model

Hi everyone, I’ve just migrated my project from Filament v2 to v3 and I’m encountering an issue with authentication. Previously, I was using the FilamentUser trait on my custom Admin model, and everything worked fine. However, after the upgrade, it seems Filament is now defaulting to the User model for login. In my application, I have separate tables for users and admins, and I need Filament to authenticate using the Admin model instead of User....
Solution:
The purge was the problem. Thank you for your time.

Modal action problem

Guys is there any way to make my modal not closing after i click the submit button? I tried using modalsubmitaction(false) but its just gonna hide the button...