Filament

F

Filament

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

Join

Relation manager many to many at resource create

Hi, I have working relation manager with attaching models/relations with editable pivot data but I'm curious if there is a way to allow attach/pre-attach or something at create page? I have delivery methods available in my app and user can create delivery prices where they can add name, select delivery methods and set their prices. It would be awesome to get this at create page instead of require save first with just a name and only then add delivery methods and prices....

Modal does not show close button by default, on custom columns

I have a page that shows a custom column: `public function table(Table $table): Table { $user = auth()->user();...

filament used for gis app?

Can filament be used to create map applications such as gis and is there a tutorial reference?

How to re-render/refresh the parent form after a new entry of a RelationManager has been created?

Hello, I want to refresh the main form/resource (or the whole page if possible) after a new entry has been created through a RelationManager of the resource. This is my setup:...
Solution:
@bardolf_6969 What I ended up doing was a full refresh. Let me share you the details. 1. Event dispatch from RelationsManager/SectionsRelationManager.php: ```php // ......

Default value in Select input

I want to set one value as default, but the default() is not working. I have had this problem many times. Is there an issue with Select or am I doing something wrong ? ``php Select::make('date_format') ->options([...
Solution:
SettingsPage is not a CreatePage though. I uses already existing data.

Help Needed with Real-Time QR Code Display in Filament Form Modal

Hi everyone, I'm working on a Filament project where I need to generate and display a QR code in real-time within a form modal. The QR code should be dynamically updated when the user inputs an original_url and displayed as an SVG. While the QR code is being generated correctly as the user types, I'm having trouble getting this QR code to be included in the form submission data. Here's a quick overview of my setup: The form has fields for title, original_url, and qr_code. The QR code is generated in real-time when the user types in the original_url field using SimpleSoftwareIO\QrCode....

Zoom ImageEntry

Hi! My infolist shows many images with ImageEntry. Is there a way to zoom the image? I would like to show it in 200x150, and when clicked show it in original size.. 800x600

Render Hook for inserting livewire custom page into user menu?

I have several panels, and some pages are shared between panels, so I have the panel directories, and then I have a shared directory where all the pages/components live that are used in multiple panels. I want to add a link to a user settings page, and since it will be shared, I want to put it in this shared directory. However, when I create a custom page class like I have with a lot of other use cases, and I use the userMenuItems method on the panel provider, I get a route not defined error and I can't seem to get past it. ```php...

Dropdown getting cut inside table.

Hey guys, i made a custom table column which opens a dropdown to change the status of a entity inside the table, but for some reason whenever the table isn't having a lot of entities, and i open the dropdown, it's getting cut by the table header toolbar. I added 2 pics to show the behavior, i tried changing the z-index but still nothing. ...
No description

UserMenu order of items

Is it possible to re-arrange the order of items on the user menu? It seems odd to me that firs there's a profile link, then there's the dark/light switcher, and then any other menu items appear below that. I'd like the dark/light theme switcher to either be at the very top or the very bottom.
No description

Reuse wizard on frontend

Hi I have a wizard on the create resource, but I want to make it available on the front end, is there an easy way to reuse the form on the front end? and not have to rebuild all fields from scratch? Thanks

Reorderable is very slow (10+sec). How to speed it up?

Hello everyone. I have a table and it has 2000 records. I use ->reorderable('position') . But each sorting takes a very long time. About 10 seconds. This is very long. I looked at the network and there is a request update spa which weighs 20 MB. It turns out that each time a record is dragged, the table is updated and 20 MB of the table is downloaded again. How can this be optimized? Why download the entire html table if you can just send the positions to the request and get the positions. Has anyone solved a similar problem?...

Action Modal $data

Hi, I am facing the issue of retrieving data from action. For some reason my $data is always empty on submit.. but there is data deep within request()->all() but i doubt i have to lean on that just to retrieve data right? After some debugging I figured out if i remove multiple it appears in $data, but this ruins the point of multiple() ... ...
No description

How to make TextInput to allow only numbers without using numeric()

Currently when using TextInput::numeric(), the input gonna be type="number" ``` TextInput::make('zipcode__c') ->label('ZIP Code ')...

❓ SpatieMediaLibraryFileUpload on repeater with relation doesn't work

Hi ! I'm trying to have a SpatieMediaLibraryFileUpload on every block generated by my repeater. I'm having an error : ```txt Filament\Forms\Components\SpatieMediaLibraryFileUpload::Filament\Forms\Components{closure}(): Argument #2 ($record) must be of type Spatie\MediaLibrary\HasMedia, Spatie\MediaLibrary\MediaCollections\Models\Media given, called in /app/vendor/filament/support/src/Concerns/EvaluatesClosures.php on line 35...

How to add mentions on the Filament RichEditor field?

I wnat to allows to notify a person on a comment, on an answer of an article or other.

Handling dispatch events with named parameters in Filament Action

Hi 👋 I'm trying to dispatch a Wire Element Pro event to open a slide-over from within a reusable Filament action. While this works seamlessly when the action is defined within a Livewire component, it doesn't seem to work as expected in a Filament action. Here’s the code that works well in a Livewire component:...
Solution:
Actions aren’t livewire components so ‘$this’ is the action in this context. You can inject $livewire into the action callback and call $livewire->dispatch() etc.

Image Column relationship separate alt/title tags

Hey all! I have a table that uses a ImageColumn with a relationship (e.g. products.icon) that results in multiple images being shown for each product. All is good there. I know I can use the extraImgAttributes() method to provide a common alt or title tag for all the images, but I was wondering if it is possible for each image to have its own separate alt or title tag? Thanks!

Dynamic CheckboxList can't track state

I have a wizard with the first step that includes the user uploading a primary file and one or more lookup files. On that step's afterValidation method, I analyze the files and set a state property as well as a Livewire component value: ```php ->afterValidation(function (Set $set, $state) { $mappings = CreateJoinMergeMappings::create( primaryFile: Arr::first($state['primary_file']),...

Edit Profile in Slide Over

Hi guys, I have seen same question not answered half a year ago. Wondered still if it is possible to open "Edit Profile" in slide over. 🙂