Wessire
Wessire
FFilament
Created by Wessire on 8/12/2023 in #❓┊help
How to include Vite compiled JS into admin panel?
2. Register script with Vite config inputs
laravel({
input: [
...
"resources/js/script.js",
],
laravel({
input: [
...
"resources/js/script.js",
],
8 replies
FFilament
Created by Wessire on 8/12/2023 in #❓┊help
How to include Vite compiled JS into admin panel?
1. Add render hook on the admin panel
$panel->renderHook(
'panels::body.start',
fn (): string => Blade::render('@vite("resources/js/script.js")'),
);
$panel->renderHook(
'panels::body.start',
fn (): string => Blade::render('@vite("resources/js/script.js")'),
);
8 replies
FFilament
Created by Wessire on 8/12/2023 in #❓┊help
How to include Vite compiled JS into admin panel?
Alright. Looks like I solved it following these steps:
8 replies
FFilament
Created by Wessire on 8/8/2023 in #❓┊help
Global Search & Laravel Scout
Thanks! I did that, but that enables global search which is great, but I need to make it search within the results scoped by Laravel Scout. It works for tables, but I don't see an example on how to do the same for global.
6 replies