How to push JS for a custom field in the formbuilder

Hi I would like to use the filament signature-pad https://github.com/savannabits/filament-signature-pad But it looks like the original author has abandoned the project, so my plan is to make a clone and apply the fixes that other users already have suggested one thing that is needed is to publish the JS when the field is used outside the admin panel - How do one push custom JS the correct way ?
GitHub
GitHub - savannabits/filament-signature-pad: Signature Pad Field fo...
Signature Pad Field for Filamentphp Forms. Contribute to savannabits/filament-signature-pad development by creating an account on GitHub.
3 Replies
awcodes
awcodes2y ago
public function configurePackage(Package $package): void
{
$package->name(static::$name)
->hasViews()
->hasAssets(); // <- this
}
public function configurePackage(Package $package): void
{
$package->name(static::$name)
->hasViews()
->hasAssets(); // <- this
}
then users can publish them with php artisan vendor:publish
awcodes
awcodes2y ago
GitHub
GitHub - spatie/laravel-package-tools: Tools for creating Laravel p...
Tools for creating Laravel packages. Contribute to spatie/laravel-package-tools development by creating an account on GitHub.
rabol
rabolOP2y ago
Thanks!
Want results from more Discord servers?
Add your server