Whats the best way to use Filament Tables in a Custom Package
So I am making a Laravel package and part of that is a small UI. I would love to use Filament Tables on that UI as it would solve most of the problems and save a bunch of time but my question is what is the best way.
The installing project may or may not have filament installed.
Whats the best way to include the assets regarded for Filament?
5 Replies
just add
filament/tables
to your package composer and use it.
and you can add instructors for your users on how to setup the assets.
basically copy it rom filament docs ππ¦ was hoping for another way. asking them to add filament:update to their post-autoload seems lame but maybe it's the only way π€
ya dont think there is a better way.
maybe create an
install
command to that for them?Yeah I did think of that. Using Spatie Package Tools and it has an install command built in. Might have to look and see if you can manually call artisan commands or something π€
ya the install command on Spatie Package Tools is good but you can create your own as in laravel apps here is an example:
https://github.com/lara-zeus/bolt/blob/3.x/src/Commands/InstallCommand.php