How filament component works ?
Hi everyone!
I’m currently tinkering with a custom Filament form field and ran into a bit of confusion.
I tried the following in a Blade file:
The first line (
<x-filament-forms::text-input />
) throws this error: Undefined variable $getDatalistOptions
But the second line using @include
works fine.
I thought Filament form fields are Blade components, so I’m unsure why this is happening.
Here’s the custom field I’m working on:
Can someone please explain how Filament renders these components, why this happening and what’s the correct way to use them , especially when customizing or extending?
Thanks in advance!4 Replies
Check the first video in my Laracasts series
I watched the video, but just to clarify, does that mean Filament form components aren’t Blade components themselves?
correct
Thanks! @Dan Harrin