How to publish package assets? I've found a tutorial here: http://laravel-recipes.com/recipes/279
But when I tried to publish assets from my workbench, I get this error:
[RuntimeException]
Unable to publish assets.
asset:publish [--bench[="..."]] [--path[="..."]] [package]
My command code is:
php artisan asset:publish --bench=Mypackage
How can I get my package assets to be published.
Thank you.
When you want to publish assets that are developed and stored in your workbench you should use the --bench
flag. In your case you want to publish a package in the vendor folder then provide "myVendor/myPackage".
Publishing assets from a vendor package
php artisan asset:publish "vendor/package"
Publishing assets from a workbench package
php artisan asset:publish --bench="vendor/package"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With