Creating stand-alone livewire component using filament form
I'm attempting to create a livewire component with a filament form in it (that bit is fine) - and then using a route to get to the component directly. Unfortunately, despite creating a layout specifically for this purpose and pointing to it, it includes livewire and filament includes, the wizard I'm attempting to show is still missing some vital component to make it render correctly. How would I go about finding out what it is?
This is the contents of the new blade - of which I have confirmed is being used.
1 Reply
Further to this - I tracked down the panel's base.blade.php and copied the necessary items from there into my custom layout. There likely is a more formal way, but this worked.
OK - this did not solve it, because while using a layout does allow the CSS and Scripts for filament/livewire to be accessible, because it's a layout and not something called via 'view', it isn't evaluated to populate any of the properties (such as $title for example) in the layout file.
Route:
Render Function:
`
I can get the heading which is set within the page using:
But this still seems the incorrect approach as there would be any number of variables (such as $title for example) - that would need to be correctly populated for the page to show.
Have I taken a wrong turn? Is there another way to show a livewire component that uses the form builder in a direct (unauthenticated) route?