Filament

F

Filament

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

Join

419 This Page has expired

I am facing a problem with filament multi panel each panel has its own user guard so for example if open both in the same browser and log out from one of the panels I get a page expired on the other and vice versa. Has anyone been fixing this problem before?...
No description

Wikicenter with Gutenberg or similar

I'm wondering what could be the most intuitive combination for filament, with some custom editor to build a company knowledgebase with pages that can be edited easy and fast. Something like Wikicenter. As the current solution is running on Wordpress with its Gutenberg editor, I'm thinking about a filament + laraberg combination. I'm not very experienced, so I'm wondering what experts think about this combination or if theres something else around that can handle multiple content types in one editor (galleries, videos, text, tables, columns,...)?...

Set up Role Based Access Control

I have Installed filament 3.x on my laravel project, I'm using tall stack laravel 11.x, livewire 3.x, alpinejs and tailwind. I have the admin for filament i can login my user table has a column role and has 3 roles "admin", 'reseller' and 'client' , based on the role of the user i want to Set up Role Based Access Control in my app, what is the best practice to do this Thank you...

How customize Repeater's item using Livewire component?

Livewire 3x. I have a Livewire component OpportunityQuote that has a Repeater in its structure, like this: ```php...

How can I sort by value string on table?

TextColumn::make('source')->sortable(query: fn (Builder $query, string $direction) => $query ->orderByRaw(<<<SQL CASE WHEN source = 'A' THEN 1 ELSE 0 END {$direction}, source {$direction} SQL) ),...

Set table to use for filament resource

I am trying to use Filament with Laravel Permissions and have run into an issue. I set the model relationship manually protected static ?string $model = Model_Has_Roles::class; as that's what the table is called. However when I try to access it I get the following error: ``` QLSTATE[42S02]: Base table or view not found: 1146 Table 'ookma-kyi.modelhasroles' doesn't exist ...

Route [filament.admin.tenant.registration] not defined

I tried following the steps to enable multitenancy from the docs. Keep getting this error, even after clearing route cache and migrate:fresh. Page files are in app/Filament/Pages/Tenancy/* Tenant settings for adminpanelprovider: ``` ->tenantRoutePrefix('organisation')...

Default value error or problem with State

Hello, everyone! Please help me. I prepared this code and provided it with data without any issues, but for some reason, it's not working. If I remove the category_id error written inside beforeFill, it starts working, but when it's present, the data doesn't appear, only the default value. I thought there was a problem only with the default value, but it seems there's an issue with the state. ...
No description

Subnavigation position in blade

When I create the subnavigation I can choose the position between Start, End and Top. However, I want to place it in a specific space on the blade. How can I do this without having to create Tabs manually? Example: ```php...

Get Table Record in Livewire Component

Hi, I'm using a filament table in a livewire component. I'm trying to use a record of the table to pass an argument to a view, but my record is always returning the livewire class and not the table record. I made an infolist in the ViewAction to confirm if the data I can display the information of the selected record and I'm recovering the right information, but in this case, I'm using the view of an older project and I some information from the record for the api query. Any idea? Sorry in advance if the answer is obvious, I'm relatively new to laravel. Thanks for the help!...

notifications

hello everyone, could u help me making transitable database notification sent to admin...

Confirmation Modal for Changes in TextInputColumn in Laravel Filament

I started studying Laravel Filament and have a question about how to implement a confirmation modal when changing a TextInputColumn field. Currently, I have the following code: I would like a confirmation modal to appear after changing the name when clicking on the text box, asking: "Do you want to change the name from Y to Z?" with options "Yes" and "No." In the documentation, I saw examples of how to create modals, but I can't seem to integrate this directly within the TextInputColumn. Is this possible? Can someone help me?...
No description

Array of `Select` doesn't fill from state

I'm making a system that maps CSV columns to an existing table. For this i have a TableMapping model and resource with a single json field (key-value pairs). I have casted this field to object in the model, my resource looks like this: ```php...

User tokens for api

Do you know if exists a plugin to include a view on user profile where users can create an api token? I'm creating an api for my admin panel and I want to prepare middleware to allow token login....

Reorder Table with Relation Manager

Is it possible to use ->reorderable('id'); in the table?
Solution:
you can use a reorderable with another column, like sort..

Class "App\Models\Member" not found

Hey folks, i tryed now so much. Fila Docs, Youtube (Code with D...), and so on. After Creating a fila-resource with php artisan make:filament-resource Member ...
Solution:
actually, you need a Model to create a Resource https://laravel.com/docs/11.x/eloquent#generating-model-classes...

recordClasses() added the class name to the table tr but the style doesn't applied

Hello filamenters, can you please tell me why I can't get the table rows text turned into red???

Custom Notification for ExportAction

How do I display a custom notification for an ExportAction? Using the 'normal' way does not work, the ExportAction keeps on displaying the default notification. My code: ``` ExportAction::make()...

RichtextEditor inserting HTML

Is there a possibility to insert HTML Text and save it unescaped to the db in the RichtextEditor?

filtersForm with action button

Hello, i create a simple report page with filter form. The filters work properly but how do I update the filters with an action button instead of the simple change event?...