Filament

F

Filament

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

Join

ViewAny Policy with user HasRoles

Hello someone can explain if i can hide SuperAdmin role to Admin Role in UsersTable with Policy. Like this: ...

Table Column Width

I am using TextColumns and TextInputColumns in my table of products. Problem is that there are a lot of columns, most of which are TextInput, and I am unable to change the size of the TextInput column. The input field of the Weight column is too wide and that makes the table stretch too much. I tried setting extraAttributes, extraInputAttributes, extraCellAttributes but i could not find a solution. Thanks for any help
No description

Large Video Upload

Hello! any idea on how to upload large video via queue? can we achieve it using fileupload component?

getEloquentQuery() is not respected when using Live()

In a resource page, after live() is triggered, the page is reloaded with the wrong model query. How do I keep the query the same after live()? Image 1 is on initial page load (respects getEloquentQuery()). Image 2 is after live()....
No description

Relation Manager Hide If No Results

Hi, Is it possible to hide table from relation manager within View page if that table has to recrods. Example:...

Relation Mannager Error

I’m encountering a bug with multiple Relation Managers in my system. Here’s the problem: When I open the page and click “Edit” on a record, it loads the correct data. However, if I then click “Edit” on any other record without reloading, the form continues to display the same (previous) data. Only after I reload the page will the next record open correctly, and then the cycle repeats....

Table Column Header/Label Action issues with Sortable

I am trying to add an Action Group in a Column Label and wondering if that is possible? I have got a prototype but it's buggy. - Pass Blade View to Column Label...
No description

Tenant help

how set current team->id (tenant) at after auth if(Filament::auth()->attempt($ldap_login_check,$data['remember'] ?? false)) { ...

custom screens breakpoints

i have created a custom theme and add custom breakpoints. i followed this instruction: "https://filamentphp.com/docs/3.x/panels/themes#creating-a-custom-theme" but for some reason the custom breakpoint is not getting applied. i did run npm run build and npm run dev. ...

Navigation groups in resource subnavigation

Does anyone know if there's a way of using navigation groups in resource sub-navigation?
Solution:
Solution: ```PHP public static function getRecordSubNavigation(Page $page): array {...

Table colulmns only add when certain filters are applied

I want to show certain columns from pivot table, but it only makes sense when filters are applied or else I run into the situation in my other post where I have to select the first one in the pivot table.

Table column that shows Pivo columns

I can't get pivot columns to show up in a table. Not sure what I'm doing wrong. when I print the column of the relationship, it shows the pivot data in json form so its got the data. But if I do "connections.pivot_column" nothing shows....

How to make a readonly role?

Hey! I would like to make a readonly role for my users on Filament panel. I created my RO policy, linked the models to it. ```php <?php...

Searchable Not Working When Preload is Set For Select Field With relationship

I have this code ``` Forms\Components\Select::make('product_id') ->label('Product')...

Infolist view as default

Can I somehow set the default action when clicking on a row in the table to open the modal of the infolist, the one that appears with Tables\Actions\ViewAction::make(), I don't want a separate view page, thanks in advance 😄

New panel not reading the resources

Is there there any wrong, I am doing. I created resource like
php artisan make:filament-resource Media --panel=creator
php artisan make:filament-resource Media --panel=creator
No description

Unable to receive the s3 path url via file upload live

FileUpload::make('file') ->label('File Upload') ->visible(fn() => $question?->type === QuestionTypeEnum::SINGLE_FILE_UPLOAD->value) ->live() ->disk('s3')...

Multiple Table Widgets At the end of the dashboard page

I have 2 tables widgets at the end of the dashboard page and filters with actions at the start of the page. when clicking on the actions this error accur
Typed property Filament\Widgets\TableWidget::$table must not be accessed before initialization
Typed property Filament\Widgets\TableWidget::$table must not be accessed before initialization
...
Solution:
Solved by disabling isLazy property

Duplicate notification when using table edit modal using filament page

Hi, let me explain my problem. I want to create a custom page where there is a form and a table in one page, while everything is working perfectly there is a problem that i notice, which is whenever i do a table action 'edit' or 'delete' the notifcation after that showed two times. First i though there is a problem with my forms, so i remove every form related code inside my filament pages, but the problem still exist. Already tried everything and it's still the same. My last effort is creating new laravel app and creating the same everything from scratch and the result is the same. 🙂...

Custom table column - sizing

Hi all, Trying to get my skill set up-to-date with TALL stack and Filament at present, so many different technologies to learn together! I've created a custom table column to show a user avatar and name alongside each other. Its working fine, apart from a small problem where the table column isn't quite growing enough to hold the content. ...
No description