You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5-1Lines changed: 5 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,10 @@
1
1
# Laravel Asset Helper
2
2
This package provides a helper to generate paths to assets on the client-side the same as in Laravel with `asset('foo.jpg')`.
3
3
4
+
Notices:
5
+
- This package works best with Laravel Mix; if you are using Vite, you should [bundle assets](https://laravel.com/docs/9.x/vite#blade-processing-static-assets) in the `resources` directory instead
6
+
- There is also an official asset helper for [Laravel Vapor](https://docs.vapor.build/1.0/projects/deployments.html#asset)
7
+
4
8
## Install
5
9
```bash
6
10
npm install @codinglabs/laravel-asset --save
@@ -39,7 +43,7 @@ To configure with an `.env` variable:
0 commit comments