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
Lara Zeus
Lara Zeusβ€’2w ago
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 πŸ™‚
Craig Potter
Craig Potterβ€’2w ago
😦 was hoping for another way. asking them to add filament:update to their post-autoload seems lame but maybe it's the only way πŸ€”
Lara Zeus
Lara Zeusβ€’2w ago
ya dont think there is a better way. maybe create an install command to that for them?
Craig Potter
Craig Potterβ€’2w ago
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 πŸ€”
Lara Zeus
Lara Zeusβ€’2w ago
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
Want results from more Discord servers?
Add your server