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 (
But the second line using
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!
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 $getDatalistOptionsBut 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!