skyracer2012
Create a livewire component via javascript
https://alpinejs.dev/directives/teleport
It seems like query selectors are supported.
4 replies
Create a livewire component via javascript
Yep I thought it would be this way. The only problem is that the livewire components then need to be moved to a jspanel like div which gets generated by js. @teleport doesnt support that as far as I know.
4 replies
Routes in web.php don't work if its the top level
I don't know how route:list actually works (maybe its sorted alphabetically). It will have to see where filament hooks in to define its routes. Maybe someone knows where it does that so I would have to give the web.php priority.
13 replies
Routes in web.php don't work if its the top level
As far as I know in laravel if you have routes before a catch-all route, it should work. I however didnt find where filament registers its routes so it must be somewhere before the web.php registration.
13 replies
Routes in web.php don't work if its the top level
I have one /admin panel which is not multi tenant and one 'app' which path is:
So the path is ''. That is probably the issue but the routes that dont work are above the 'app' route in the route:list command.
13 replies
Multiple Infolists in Form not rendering when ->live function is being used by any component
I fixed it with just creating a new Livewire component and then rendering the Infolist with the ->toHTML Method and then passing the html into a blade view that renders that html unescaped. The infolist seems to be XSS resistant as far as I tested it.
The original issue is still present though. Will mark this as done because I did fix my problem.
6 replies
Redirect panel according to user role
Assuming that you want to redirect to your panel from the index route (/) you can still use a normal laravel web route and based on that redirect further as in https://laravel.com/docs/10.x/routing#basic-routing
4 replies