Filament

F

Filament

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

Join

How to Determine if the dashboard is using dark or light mode in Filament?

It is possible to Determine if the dashboard is using dark or light mode in Filament? TYIA.

Is Filament PHP a Good Fit for a TripAdvisor-Like Project?

I'm thinking doing a TripAdvisor clone toy project and wondering if Filament PHP would help simplify development without getting in the way. Would it work well for something with user reviews, listings, and interactive features, or would straight up Livewire be a better option?

Add link to description

Hello all, I have modal and want to add link that when click on it then modal show with form, how to do that?...
No description

Enable or Disable Toggle by default when first page load

Hi Everyone i have problem when i create custom function schema on my grid to show list based on checklists that i have Here's the code, and i got trouble when i want to set by default the toggle is enable/active/on is everyone have any good approach to solve this problem ? ```Grid::make('checklists')...
No description

Conditional hidden field with javascript

Hi I have a field with conditional hidden property
->hidden(fn (Get $get): bool => $get('video_type') != 'file')
->hidden(fn (Get $get): bool => $get('video_type') != 'file')
...

Navigation groups cannot be clicked

I'm confused. The navigation group can't be clicked, but when minimized everything works, if it's mobile it doesn't work
No description

Table Records that don't exist in database

Hi! I have a RelationshipManager where I want to display records even though they do not exist in database. Basically I have an enum of modules and I want to show them all in the relationship table whether the user has the relationship or not. If they have it, it should have an edit action. If they don't have it they should have an install button....

How to view Export CSV row errors?

I get the database notification that some were successful and some failed, but I can't see the reason why they failed - does anyone know how to hook into that?

Tags Ownership - Multiple With Same Name

Hi folks, what would a model look like for the Spaite laravel-tags (https://github.com/spatie/laravel-tags) look like? I would like tags in which the user is the owner, tag names can be duplicated across the application, and tags have a category. Thanks in advance.

Using emoji picker to create an emoji only field

I'm trying to create a new field which only allows Emoji rather than emoji + text. Have looked into this package: https://filamentphp.com/plugins/tangodev-emoji-picker Has anyone achieved something similar already?...

Import, before action

Hi All, I'm trying to import a CSV, the problem with the CSV is that there are no identifiers for updating a record. Now i'm looking for a action before the importer runs to remove all data already availible in the DB so the new data will be leading and old data is remove....

Is it possible to DI in a class that extends Filament\Resources\Pages\CreateRecord?

mount doesn't work because the parent class has that defined already with no parameters __construct doesn't work because Livewire only injects into mount Currently I'm using app/resolve helper, but that's not DI....
Solution:
Figured it out, you have to use the boot function.

center fileupload?

it is possible to center this
No description

Light/Dark Mode Switch Animation

Good day. Is it possible to put a "animation" while switching light mode to dark mode (vice versa)
No description

Edit form without fields

I know, it sounds daft, but I was wondering if the edit form (which I have implemented as a slideover) and from which I have removed the ability to edit any fields can be displayed without field boundaries - there is a default size for each field, some are very short content others are potentially more lengthy text. I wondered if it is possible to apply an attribute that would result in the fields actually not being displayed and whatever content is behind then just being displayed without any length constraints? Is there a different type of resource i should generate and use (and can it be accessed in the same kind of way as a slideover (not critical, but nice)? thx all,...
Solution:
That works perfectly - thanks @awcodes

Filament base address setting?

I have set up laravel, livewire, and filament on github codespaces. things are mostly working. However, when I visit the /admin page created by Filament the styling is off because it tries to get its CSS from an address of //localhost, whereas my site is on a Codespaces-generated address. I have changed .env's APP_URL to reflect the correct address, but the CSS source address doesn't change. How do i tell Filament the domain to use as its base?...
Solution:
I tried adding an ASSET_URL, but this didn't help.

I can't make a feature test on custom action

I have this custom action with two forms, ```<x-filament-panels::page> <x-filament-panels::form wire:submit="approveTransaction"> <div style="display: flex; gap: 20px; align-items: stretch"> <div class="flex-1">...

Custom field dynamic query

Here I have to create a custom field where I have to show suggestion by type [ char and variable name. I want to make it generic where user should pass the query builder and suggest according to the user enter value. ```php DynamicVairable::make('dynamic_varibale')...

successNotificationTitle for table action is not showing

The successNotificationTitle for my (custom) action is not showing after the action has been successfully executed. Does anyone know why? This is my code: ```php Tables\Actions\Action::make('Watchlist') ->color('warning')...
Solution:
you need to call success like ```php ->action(function (Tables\Actions\Action $action) { // your action... ...

In RelationshipManager modal form, how I can validate Repeater form

Please advise how I make a proper livewire->validate() the Repeater Data form. The data is in array as $data['transfer'] . At the moment I just made if(!blank($transferData['from_id']) ... I would like to use $livewire->validate( 'to_id'=>['required'], ) ...