Filament

F

Filament

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

Join

In resources, where do I put database queries that I only want to run once?

The ->hidden() method runs 5 times per row in my app, and that seems to be the default with filament. I really need the result of it to be based on a user permission, but that would mean fetching that permission lots of times when I don't need it. Is there a place in a resource similar to mount where I can load something once and access it?...
Solution:
Not a great idea but you may just load it insude the table method as a variable as long as it isn't needed for the resource class itself

Using a filament theme without frontend-scaffolding

Hello, I am working on an api only laravel app, for the api I am using filament manage my api. Altough did notice issues when installing a custom theme (specificaly this one https://github.com/Fa-BRAIK/dash-stack-theme). I am getting the error: "Vite manifest not found at: E:\Development\Api\public\build/manifest.json " I do have vite installed on the project, but I am not using any frontend scafholding, so I can't build the vite application to get rid of the error, what should I do? (Not sure if this would be the right place to ask?)...
Solution:
I guess you need to create a Vite config file that references vendor/nuxtifyts/dash-stack-theme/resources/css/theme.css and compiles that

Table row record action combined with expandableLimitedList unexpected results

Hi all, When I have a table with a view / edit action that is used by default when you click the whole row, the expandableLimitedList doesnt work as expected. When you click the "show x more" link to reveal the rest of the limited list, the view / edit action is triggered instead as it doesn't distinguish this separate link from the whole row click. Anyone else experienced this and have a solution?...

I created a ListRecords with a parameter in route and my widgets don't work, they don't see param

This is my route in the DriverResource file 'stat' => Pages\StatDrivers::route('/{record}/statistics'), If I use a static value, the widgets work: $this->driverId = 14; But when I get the value through $this->driverId = request()->route('record'); widgets are not work I added full code to GitHub because Discord has a 2000 character limit....

FIlament button flex

I am trying to put the loader and text on the same line but everything I try doesn't work, can someone help me out? ```html <x-filament::button class="flex items-center gap-1" x-on:click="importGames()" x-bind:disabled="localSelectedCount === 0 || isLoading">...

dispatched event not being listened to

In our API, we dispatch an event afte an item is created. I have tried doing the same on our Create page using this code, but nothing is listened to. How can I register my listeners with filament? ``` protected function afterCreate(): void { $this->dispatch(new DataCreated($this->record));...

richEditorFormComponent is not defined

Hello I'm having an issue with the RichEditor. I can't tell if it's a Filament issue or what but I'm giving it a go here. ...
No description

Filament Docs; original code.

There's a process for automatically generating the doc-assets for use in the astro docs. It involves creating the actual Filament form used, rendering it, then Playwrite is used to take the actual screenshot that's used in the AutoScreenshot component. I'm looking for where the original Filament code is stored....

Logout Route

Is there a way to modify the default logout route? I just want to point it in the root url.

Missing Dashboard Resources in Filament

Hello everyone, I am currently facing an issue in my Filament project where several source sections in the board are unexpectedly disappearing; only two are visible. I haven't made any major changes recently and I am not sure what might have caused this issue. I have created Posts, Categories and Memebers but I can't see any of them. I don't understand the situation even though everything looks fine on the backend. Can you help?...

Relation Manager with repeater and pivot

I Hi, I have the following: `class RewardsRelationManager extends RelationManager { protected static string $relationship = 'rewards'; [....]...

Bulk Delete confirmation takes too long for large number of records selected

I'm having an issue with bulk delete confirmation, when selecting over 9000 records, the browser freezes and after a while i get the confirmation for delete message, this issue causing the server to crash. is there a way to fix it?...

Add Custom Header(topbar)

Hello everyone i'm working on custom filament panel and il would like to add custom top bar instead of this image i attached and the title change when you acced to different page
No description

filament plugin menu-builder hide from sidebar

i want to hide this filament plugin menu-builder from sidebar. this method doesnt work shouldRegisterNavigation(false)...
Solution:
According to the docs, you can overwrite the Resource: https://filamentphp.com/plugins/datlechin-menu-builder#customizing-the-resource Did you do that?...

Use subdomain for single route in combination with MultiTenant subdomain

Before using filament in combination with the MultiTenant solution our application was exposed on the domain: dashboard.example.org. Now that we are preparing a launch with MultiTenancy support from Filament we are looking for a way to catch this explicit route and let it forward to the first availble tenant instead of throwing the 404 when trying to retrieve the record. But we are not yet succesfull in doing so, wetried different solutions in terms of: - tenantMiddleware - bootUsing - custom middleware...

How to prevent role customer from logging an event?

I thought it's working but when we tried in the staging sting customer role can log an event I tried the shouldLog as suggested <`?php...

Table Reorder support for tree?

I am trying allow my table to be reordered, but since my table rows can have parents of it's self the viewing of the table needs to be adjusted. Can't think of a way how to adjust the reordering / table view to allow tree viewing and or reordering sub childs.

wanted to hide submit button of wizard from when form submitted and show thank you message

I am using filament wizard form in livewire screen on last step when form is submitted i wanted to show thankyou message with some content and hide the submit button when form is submitted #form-builder...
Solution:
the submit button is rendered on the last step. Maybe you could hide the wizard and show a custom message after the form is submitted: ```php public bool $showMessage = false; ......

flash of unstyled content - file upload

I always see the raw file uploader that looks terrible before the nicely styled one appears. How can I prevent that?