Filament

F

Filament

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

Join

Copyable Not working

It seems that copyable not working on v4.. ``` public function table(Table $table): Table {...
No description

Highlight code block in Rich Editor

Hi, I installed Filament 4, and I'm using the rich editor (I was using the awcodes package in v3). However, it doesn't seem to be possible to use highlighting with code blocks. So I created a plugin....
No description

Get Nested Parent

Hi all How would one get the parent resource model from the nested resource. Eg. I am on this page: /contacts/suppliers/9e226114-dfa0-49eb-8dba-94200fb935e9/supplier-invoices/create I am on the 'Create supplier invoice page' and I want to access the supplier which is the parent....

Setting default value for Checkbox (forms) is not working

I am trying to set a default value for a Checkbox. Basically I am trying to get a value from the database and then based on a specific condition, check/uncheck the box automatically. Here is the code snippet: ```...

Tailwind not working

After upgrading to filamentphp v4 and tailwindcss v4, it seems that when I add filament components on livewire blades they come with 0 css
No description

security.

Do we need policy or method like canCreate, canEdit, ... is just enough to protect the web?

Rendering a table in a Blade view V3 to V4 Issues

I already run the upgrade scripts . but I got this issue . ``` Error: Cannot find module './vendor/filament/support/tailwind.config.preset' Require stack:...
Solution:
Done
No description

filamentTable not defined after V4 Upgrade

After following the upgrade guide, I'm getting this error in console. Some things aren't working like bulk actions. ``` livewire.js?id=df3a17f2:1123 Alpine Expression Error: filamentTable is not defined ...

Filament and Lunar with shared login

Hello. Is there a way to use the same account created in Lunar, in Filament? Lunar uses the Staff model to authenticate. I would like to avoid messing with the existing authentication flow so I'm asking if you had any experience with that. I'm doing this because I need my users to both access their orders in the /hub of Lunar and more custom filament resources in /admin. I have experience in Laravel but not that much in Filament and Lunar. Thank you in advance!...

V4 RelationManager Class must be declared abstract or implement methods

Class must be declared abstract or implement methods 'getSelectedTableRecordsQuery', 'isTableColumnToggledHidden' Hi, I don't see on the documentation if I need to declare this methods and how. Or maybe it's a problem in the upgrade. ...
No description

Dynamic load component - Reactive does not work on Select

``` public ?string $key = null; public function form(Schema $schema): Schema...
Solution:
try this code please ```php public ?string $key = null;...
No description

How to add a confirmation modal before saving while keeping the submit method?

Hey all! I'd like to add a confirmation modal before saving a form, however when I add ->requiresConfirmation to the Action button, it doesn't do anything: ```php...

Possible SMTP Credentials Leak

Hello everyone, Recently, I had two serious incidents where our SMTP credentials were used to send unauthorized emails. Even after rotating the credentials and reinforcing security measures, the issue happened again. Current setup:...

The v4 upgrade script has rewritten FQCN definitions in classes that have nothing todo with Filament

Why has it done this? Is it expected? `namespace App\Providers; +use Illuminate\Http\Client\ConnectionException;...
Solution:
Rector is doing this. The upgrade script should have asked for directories you want to run the script against allowing you to run it against specific filament directories.

custom action in v4 changes?

in v3 i would extend an action like this ```php class MyCustomAction extends Action {...

Modal Table Select - Adding Actions

Hi, I'm working on upgrading a project from v3 to v4 - looking at moving from the RecordFinder Plugin to using Modal Table Select. It is very similar (in our use case) for searching, however, I am struggling to add a create Action for the times that the user cannot find the one they need. I have treated it the same as a normal table, but I wonder if the facility to use HeaderActions or emptyStateActions is not yet available in the Modal Table Select? If it isn't is there some work on the radar for it? Or, as is quite possible, am I missing something?...

Checkbox list groups

Anyone has an idea how to render multiple groups of checkboxes? For example, I have grouped permissions. Like Posts permissions (read, write, delete), Categories permissions (read, write, delete) and etc. And all selected checkboxes should save to BelongsToMany pivot table. I know I can make it work with handleRecordCreate, but maybe there is a Filament way? Ex. ``` Fieldset::make(__('Leidimai'))...

No email is send on registration

Hi I'm trying to use Filament to do the authentication and also have MFA My app consists o the frontend and the 3 panels, user, vendor and admin...