F
Filamentβ€’10mo ago
Hurruwa

Its normal to have filament Js files on the public folder?

I have been noticing that i have a lot of js files on my public folder and idk why. Is this normal function? Where this files are meant to go? On vendor/filament?
No description
Solution:
You can republish them with php artisan filament:assets
Jump to solution
6 Replies
ModestasV
ModestasVβ€’10mo ago
Yes, this is normal. Filament uses a lot of JS functionality all over the place, so it needs them to be accesible publicly. That's why they are there πŸ™‚
Hurruwa
Hurruwaβ€’10mo ago
... great i just delete them all hahaha thanks for the answer dough
ModestasV
ModestasVβ€’10mo ago
No worries πŸ™‚
Solution
awcodes
awcodesβ€’10mo ago
You can republish them with php artisan filament:assets
DrByte
DrByteβ€’9mo ago
And, your composer.json should be calling php artisan filament:assets every time you run composer update, so that it keeps things in sync. Normally the filament install process adds that to the composer.json file.
awcodes
awcodesβ€’9mo ago
Adding filament:upgrade will also run it by default.