Filament

F

Filament

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

Join

Free and Paid Resources

I want to restrict navigation resource like below use-case, where free/paid can have options Use-cases: 1. When any user login, they should see all resources in navigation 2. If not subscribe, auto redirect to free resource when logging in...
Solution:
I tried to quickly create something, and ended up with this: use resources as regular resources, but then add global middleware to redirect to locked page
No description

In a RelationManager, how do I show the headerActions when the record owner is in view page?

I don't think there's anything more to explain. I'm looking for something like' visibleOn(['edit', 'view']) ', which is usable on fields.

style isn't applied in blade

i have a simple ViewField usage in my form
php
ViewField::make('transcript_path')
->label('Transcript')
->view('filament.resources.scholarship-application-resource.document-link'),
php
ViewField::make('transcript_path')
->label('Transcript')
->view('filament.resources.scholarship-application-resource.document-link'),
...
No description

FIlament infinite redirect to /admin/login - HTTP 302

I have returned back to filament after few projects. I wanted to do admin panel with filament and front with react So i have installed starter kit of laravel v 12.28.1 with inertia + react, and installed filamentphp v4. However something is wrong because when i try to login into filament
/admin/login
/admin/login
on wrong credentials it shows me error message as it should, and on correct credentials it redirects me to
/admin
/admin
and back to
/admin/login
/admin/login
as it is shown in logs of pa serve or in browser. ...
No description

Select component not saving relationship since 3.3.8

Because of this commit: https://github.com/filamentphp/filament/commit/e181afc9a6a424a4ddc0e68dfaa5c382c857c4af, my relationship is not saving anymore during a record creation. Model "Allocation" has a relationship "npis" on the table npis (npi.allocation_id) Models/Allocation.php...

Action button on top

Hi, is it possible in v.4 to move save, cancel buttons... to HeaderActions globaly?

SPA Issue with User Menu Items

I've created User Menu Item with Action ``` Action::make(name: 'editProfile') ->slideOver()...

Interactive TipTap blocks

What would be the best way to make TipTap custom blocks interactive during preview? Like in the Builder component
->blockPreviews(areInteractive: true)
->blockPreviews(areInteractive: true)
I would like to implement interactive editing as an alternative to the Schema fields....

Default date format

In v3 I was able to set the default date format in the boot section of the AppServiceProvider using the code below, this does not seem to work in v4, any idea on how to achieve this? DateTimePicker::configureUsing(fn () => DateTimePicker::$defaultDateDisplayFormat = 'd/m/Y'); DateTimePicker::configureUsing(fn () => DateTimePicker::$defaultDateTimeDisplayFormat = 'd/m/Y H:i');...

Display the table correctly on Mobile and Desktop

I'm using Filament version 3 and I need to create two layouts with Table Builder. One for the desktop, which will be the traditional layout, and the other for mobile, which will use Split to group the columns. The problem is that I used the code below, and both the desktop and mobile layouts ended up with the same mobile layout. Could someone please help me and tell me if I did it or how to do it to make it work?
public static function table(Table $table): Table { return $table ->columns([...
No description

FILAMENT CSS NOT WORKING

I have noticed that after upgrading to V4 the css is misplaced and even when I try initializing a new project still I am getting the same

Default Label-Translations

Is there a way to define in a single location, how attributes should be labeled? i.e last_login_at so that I do not need to set a label at table and inside the schemas? A trait within the models like HasLabel would be cool. Similar to what enums are offering.

->colors(): Can multiple values share the same colours?

Can ->colors() in Filament TextColumn accept multiple values mapping to a single colour? Or does it only accept a single value per color? What’s the recommended way to handle multiple values that should share the same colour? For example:...
Solution:
You can use that or resort to using enum (can configure color, description, labels and icons)

How to render admin panel navigation item only for selected users

I'm facing some difficulties when trying to access my authenticated user's data in AdminPanelProvider. In my specific case I want to use Filament Debugger plugin (that adds panels to Telescope, Horizon and Pulse) only for super_admin role from Shield, but examples like "display Birthday Panel" would be more than enough if anyone has one! The code I'm trying with is:...

Dockerization for v4

Is there already sombody who made a Docker solution that can be shared? I beleve MUST HAVE containers for avarage FilamentPHP project are: - App (php-fpm) - Database (PostgreSQL/MySQL) - NGINX...

Filament FileUpload: CSV Validation Error with Multiple Files

code : ->rules(['musicCatalog.*' => 'mimes:csv']) ->validationMessages([ 'mimes' => 'アップロードされたファイルの形式がCSVではありません。', ])...

Can't set default value for form components on RichContentCustomBlock schema (RichEditor)

I'm trying to set a default value on a form component within the shema of a RichContentCustomBlock. Example: HeroBlock.php ```php...

problem in css after upgrading to v4

can someone please help me? I just upgraded filament to v4, the problem is now the filament style doesn't seems to be working. I've run npm run build, and no issues there, and ran artisan optimize:clear, still no luck. I don't have viteTheme in AdminPanelProvider....
Solution:
yes I did.. finally the css is working again after I added these, inside <head> at my base blade file.. @filamentStyles @vite('resources/css/app.css')...
No description

RIch Text Editor Translated Values Issue

Hello, did anyone experience translation issues with RichEditor?
No description