Filament

F

Filament

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

Join

Why do I get Unable to locate file in Vite manifest: resources/css/filament/manage/theme.css ?

I get an error Unable to locate file in Vite manifest: resources/css/filament/manage/theme.css. Even though my file path is correct. vite.config.js...
No description

Testing Builders

Using Builder Fields, how can I test that a builder block has certain fields visible and if specific sub-fields are required? https://filamentphp.com/docs/3.x/forms/fields/builder#testing-builders Take this mockup for example:...

How are people storing tenant-specific settings?

Using the multi-tenancy pattern described in the Filament docs (using a single database with a single Tenant model), how are people storing/configuring tenant-specific settings? Usually I'd reach for something like spatie/laravel-settings and the related Filament plugin, but it's not tenant-aware and so the settings end up being global settings (e.g. settings that I would set to control the entire site, rather than being configurable by each individual tenant). How are people addressing this problem? I'd rather not have 100 different columns on each Tenant object if I don't have to, and I'd rather use a package than roll my own if possible. I can't imagine that I'm the first person to encounter an issue like this so I'm curious how others solved it. Thanks...
Solution:
Went through this rabbit hole recently. Ended up rolling our own, as we required inheritance (platform > tenant > company). I came across https://randallwilk.dev/docs/laravel-settings/v3/basic-usage/teams during my search, which I hope does what you are looking for (you can replace team with tenant).

File Uploading problem 401 Error.

[Everything works fine In local Environment] Hello, I have this problem I'm using ngrok-free to host my app locally to test my app in online. Everything work's fine like loading image assets but when I try to Upload image using FileUpload it cause problem. btw I didn't face this problem If I use normal upload Like using blade and controller. Here Is My setup that usually work with normal app. File Upload ...
Solution:
I think ->trustProxies() is the right way. I think you can add your ngrok IP to limit this, but I don't think there is a high risk when you keep your ngrok URL to yourself.
No description

Installing Filament - Laravel Mix asset's wont compile

Sorry in advance if I'm missing something straight forward... I'm on an existing laravel project and just wanted to test out FIlament Tables, I followed the documentation at: https://filamentphp.com/docs/3.x/tables/installation 1. I ran "composer require filament/tables:"^3.3" -W"...
No description

ERR_TOO_MANY_REDIRECTS Mutiple Panels Single Panel For Auth Login

Hey! I've set up 4 Filament panels in my Laravel app: Admin, Student, Guardian, and App. Each has its own dashboard like /admin/dashboard, except App, which is just for login/registration. After login, users are redirected to their role’s dashboard via a custom LoginResponse....

Richeditor live update

Hey everyone! 👋 I'm running into a weird issue with Filament forms and could use some help. I have a Select field that's set to ->live() and a RichEditor that should reactively update when the select value changes, but the RichEditor isn't triggering its query when I change the select option. Here's my code:...
Solution:
I think you need to set on afterStateUpdated on the select. so ```php Select::make('from') ->label(__('From')) ->live()...

Page refresh with Infolist Action

Is there a way to refresh a page after Infolist component action is clicked? I've tried dispatching event but no luck for now.

Skip importing row in ImportAction

How do you skip a row when the importer is cycling through a CSV in the ImportAction? I am returning null based on a few conditionals in the resolveRecord method of the importer, but in the importer report - it still seems like the row is being processed and then the report counts it as imported?...

Placeholder not rendering custom HTML

``` Forms\Components\Placeholder::make('delegation_summary') ->label('Delegation Summary') ->content(function (Forms\Get $get): string { $delegator = $get('delegator_id') ? User::find($get('delegator_id'))?->name : 'Not selected';...
Solution:
the fix: change: ```php ->content(function (Forms\Get $get): string...
No description

How to preview with mobile ui in create form Fileupload Preview

I want to create blog post and want to preview title,image and date with mobile ui beside of form

How safe is filament on the frontend?

Using the forms on a public facing page. Does it require custom laravel input validation? Anything I should definitely pay attention to?...

How to get file upload preview to work when setting the value programtically on the private disk ?

Basically I am trying to make it so when the user uploads an image type that is not support the image preview on fileupload it automatically converts to jpg, optimizes for web, and shows that preview image and uploads that instead I have it working if I use a public disk to store the image path. But by default the fileupload component uses app/private/livewire-tmp/ and is still able to display a preview....

how to open a modal without a trigger button?

is there a way to open a modal without a trigger button? for example this action modal: ```php public function testAction(): \Filament\Actions\Action {...

How to query/chart on a fiscal year? Calendar/data dimension table?

This might not be exactly Filament related but I'm working with a Filament app so I'll ask here. I need to chart some trends based on a fiscal year of Jul 1 - June 30. I'm wondering what the best way to go about this would be? Should I build a calendar/data dimension table in the database or would you just use Carbon to limit your queries dynamically?...

Export action - Login route not found

I am trying the prebuild Export action for the first time. Everything works, except the download of the export. I get the url path /filament/exports/2/download?format=csv for the CSV export, but there I get the error Route [login] not defined.. I guess (and thats just a guess) its because I am using not the "web" but an "admin" Auth-Guard. But I have nowhere else problems and of course I have set ->authGuard("admin") in the Panel service provider. Any ideas?...
Solution:
@bernhard I fixed this by overriding the export download route and using a service provider to bind tenant user model to authenticatable class. ```php Route::get('/filament/exports/{export}/download', DownloadExport::class) ->name('filament.exports.download') ->middleware([...

view

view admin panel problem
No description

How can I get live preview image with custom ui in filament?

How can I get live preview image with custom ui in filament? for example, I have 2 layout section and FileUpload::make('image') is from first section and if upload this image I want to preview in second section live preview for this image....

Importer: use a field that's not part of the model

Does anyone has successfully used a field that's not part of the model?

Filament Table Widgets with action

Hi, any solution for this please when I click into the action in my Table Widget its opening with an overlay and I don't know where it comes from.
Solution:
For now it is ok when I was on 3.3.something it doesn't work but when I upgraded into the latest works fine
No description