Filament

F

Filament

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

Join

Looking for a CRM

I'm looking for a CRM to add to CMS Max that 1000s of our users can take advantage of. If something exists or if someone can build us it, please let me know. The CRM would need to integrate with our code so that when forms are submitted on our customers website it goes into a leads bucket. From there the admin can move it to sold or unsold etc. would also like to be able to send invoice, Mark as paid. Send automated email to leave a review etc.

Relation manager try to get relation with camel case

Empty relation manager, with only: ``` class DomainsRelationManager extends RelationManager {...

GRecaptcha field disappears on livewire/update in a Livewire Component, but not in Panel Resource

I've implemented the Captcha field in a Livewire Component, but after doing the captcha or saving the form, the captcha disappears. It seems wire:ignore here is not respected. The weird thing here is when I place this Captcha field inside a panel resource form, it works correctly and does not disappear. I've tried moving the wire:ignore but it's not working. I could really use some assistence here. ```php <?php ...
Solution:
I've figured it out, I had moved the app script in @vite to before the body, when I moved it back to the head, it works as it should. Wrong: ```html <html lang="{{ strreplace('', '-', app()->getLocale()) }}">...

edit/delete modal from within relationship modal

I have an order page that has a relationship to items. the items also have a link to 'process steps' which are listed in a modal (a custom table view) Is there a way to bring a second modal up for the edit and delete actions for the process step resource?...
No description

Use x-on:click in a blade component to trigger an Action modal

Hi everyone. I'm building a fairly large application and absolutely love the component based approach of Filament. I'm using components separately, so no Panel builder. I'm using actions heavily and recently I ran into the following scenario that I was not able to figure out. What I want to do is:...

Translation via filament panel

Has anyone found a good way to create and update translations for missing __() strings, validation error messages, etc. via filament admin? 🤔 There's quite a few filament plugins for spatie-translate but that's only for model attributes I think....

Unable to locate file in Vite manifest: resources/css/filament/admin/theme.css.

this is my admin panel, this error occur only in production/staging when i comment out the viteTheme, but now the css doesnt apply in my page, i need this styling but how to fix that? whenever i comment out the viteTheme it will error ```class AdminPanelProvider extends PanelProvider { public function panel(Panel $panel): Panel {...

how to create a table composed of more than one model

I am in a situation where I have two data models that must join to create a table from their union, but I don't see a doc about it and I don't consider intuitive the way to do it, so if you can provide me info or a doc to read it would be very useful.

dashboard not registering in links

as-per the guide it shows creating a new file in Filament\Pages\Dashboard.php and inserting: ```<?php namespace App\Filament\Pages;...
No description

tailwind v3, vite.config - strange behavior

Hello, before I created this post, I tried to find some things via Discord search here and via the documentation, unfortunately not really successful. This is what my tailwind.config.js looks like: ```js...
Solution:
You need a custom filament theme

How to get infolist in ViewAction modal in table widget?

I've created a table widget and I'd like to get the infolist I defined in the resource for this specific model to show up when I view the record (which opens in a modal on both the resource and this table widget). I've tried adding the infolist method, but there nothing appearing inside the model. What am I missing? ```php class ConversationReports extends \Filament\Widgets\TableWidget {...
Solution:
on the view access class you should be able to do:
->recordAction(Tables\Actions\ViewAction::make('view')->infolist([schema]))
->recordAction(Tables\Actions\ViewAction::make('view')->infolist([schema]))
...

Searchable Select - Tab Twice Behavior

Hi, I have a searchable Select component on a form. After searching for a value and hitting ENTER to select the value, I then have to hit TAB twice in order to advance to the next field in the form. This seems like the intended behavior since it is the same behavior on the Filament demo in the Order form. ...

Filament Google Maps plugin is not changing my TextInput fields when marker is being moved.

Hello there. I'm using this package. I'm working on a project that needs the latitude ang longitude so that we can put them up for people to navigate exactly where the place to go. My only problem is that when moving the marker using drag or click, The TextInput fields does not react. I tried reading the documentation a lot of times but it's not really working how I like it to work. It works when I: Move pin -> click on the text field for latitude -> click outside the text field -> the latitude and longitude updates ...
Solution:
I just settled with mutating the data before saving and remove the fields from the form. 👍

Dispatch event from afterStateUpdated to another field?

Hey guys, I have a builder field with a afterStateUpdated function where I want to dispatch the current value to a custom field. I tryed livewire listener but this didnt worked.
Is this possible? Or could I force a rerender of the custom field by manipulating its state? Thanks....

Multi tenancy menu URL

Hello, im using the multi-tenancy feature for my events management project. Each event is a tenant and users can have access to multiple events, but not on all resources of that event. My problem is that if a user has acces to a resource in a specific event but not on another and if he changes the tenant (event) its will give him 403 page (which is correct because he does not have acces to that resource in that event/tenant), how to change the dropdown menu urls to the page path of the tenant (n...
No description

Export Bulk Action without queueing a job

This is a very small 1 row export, and maybe I could directly export it skipping queueing a job. Any suggestions?
Solution:
Thank you friend. I already figured it out. I just customized a BulkAction class.

`Typed property Filament...Component::$container must not be accessed before init` from custom field

I have a custom field that I am calling from within the form scheme of a panel. Inside it I have cave a computed property that returns some inputs, I would like to make use of filament's form components though, to keep everything more consistent. If however I do so, I am greeted with the following error: Typed property Filament\Forms\Components\Component::$container must not be accessed before initialization The code that produces the output is this: ```php public function makeFilterField($filter) {...

In Form Builder - Relation is failing to save. Presents SQL error.

When saving a resource that has a relation with another resource, it looks like it saves the resource, however presents this SQL error. Also attached at pictures of the models being used, with their relations. The form is using relationship('host', 'name') as the way to relate the 2 models via the form. (This does present the data correctly, and seems to store it correctly as well, but it's acting as if it needs to update the User Table, when it has no real reason to update that? Maybe I have something set up wrong. When trying to use this in a front-end using Livewire, it for some reason isn't caring what is stored for the host. I'll open another help post if that is needed....
No description

I don't know how to add a custom icon to the header.

I don't know how to add a custom icon to the header.
Solution:
in genera that can be done using the render hooks https://filamentphp.com/docs/3.x/support/render-hooks#scoping-render-hooks...
No description