Tricks

Automatic rebuilding your admin panel custom theme

Jun 3, 2022
Adam Weston
Admin panel

If you're using a custom theme for your Admin panel and are constantly forgetting to re-run your build just add this to your composer.json file:

"post-update-cmd": [
...
"@php artisan filament:upgrade",
"npm run production"
],

Now anytime you composer update Filament it will also rebuild your theme for you.

Cheers!

No comments yet…