Arko
Importing a js lib via Async Alpine
I'm loading an Alpine component asynchronously, however now my lib import doesn't work anymore:
Gives me this error:
Now tossing in the full relative path import Tribute from
"../../../../node_modules/tributejs/dist/tribute.esm.js";
also doesn't work since its loaded via http, so it'd try to load this: https://my-app.test/node_modules/tributejs/dist/tribute.esm.js which obviously wouldnt work. Do I need to somehow compile this tributejs into public for this to work with async alpine?2 replies
Conditionally show a dashboard page
I only want to have certain user roles have a dashboard, but the user is not resolved yet in the panel's provider. Is there any way to just hide a dashboard via policies for example, just like how I can hide a resource for certain users?
18 replies
Default option with `->getSearchResultsUsing`
I've got a select like this:
But would like to preselect a project if its available in the route parameter, how can I do that? Tried adding
->default(1)
(1 is a project ID) but that throws An attempt was made to evaluate a closure for [Filament\Forms\Components\Select], but [$project] was unresolvable.
Also the ->preload()
doesn't seem to do anything.8 replies