Support the ongoing development of Laravel.io →
Blade Packages

Working on my first package and running into mixed results with assets.

According to the doc "However, we are unable to link to assets in the vendor or workbench directories, so we need a way to move these assets into the public directory of our application." But in this case there are no assets specific to the package as of yet. So in the package view.layout have:

{{ HTML::style('css/bootstrap.css'); }} {{ HTML::style('css/theme.min.css'); }}

both are found.

Yet {{ HTML::script('js/production.js'); }} is not. I know this script is there as the public/js folder as it gets served on pages in the main app directory. Can anyone see my error?

Thanks

Dave

Last updated 3 years ago.
0

Sign in to participate in this thread!

PHPverse

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.