Publishing a Package's Assets to Your Public Directory


You want to copy a third party package's assets to your application.


Use the php artisan asset:publish command.

$ php artisan asset:publish cool-package

This copies the assets from the third party package into your application's public/packages/cool-package directory, making them available in the web space.


For non-Laravel packages you may need to specify the path.

$ php artisan asset:publish cool-package --path=/package/dir

For workbench packages, you can simply specify the workbench name.

$ php artisan asset:publish --bench=cool-package
comments powered by Disqus