in laravel, which one is the proper way to add custom css & js files:
I added my custom css/js files in resource folder but not working. But it works when I added my css and js files in public folder. Need a proper way to do that.
You can either:
Drag/drop them in the /public directory
Place the file in the /resources directory, and in your build tool, copy the file(s)/directory(ies) from /resources to /public
If you use #1, be sure to add/include it the file(s) in your VCS.
Laravel has documentation on #2: https://laravel.com/docs/5.6/mix#copying-files-and-directories
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