Laravel 5.7 + Font Awesome

Laravel 5.7 through 7.x using Font Awesome 5 (The Right Way) Build your webpack.mix.js configuration. mix.setResourceRoot(‘../’); mix.setPublicPath(‘public’) mix.js(‘resources/js/app.js’, ‘public/js’) .sass(‘resources/sass/app.scss’, ‘public/css’); Install the latest free version of Font Awesome via a package manager like npm. npm install @fortawesome/fontawesome-free –save-dev This dependency entry should now be in your package.json. // Font Awesome “devDependencies”: { “@fortawesome/fontawesome-free”: “^5.15.3”, … Read more

Laravel 5.4 ‘cross-env’ Is Not Recognized as an Internal or External Command

You need to make cross-env working globally instead of having it in the project. 1) remove node_modules folder 2) run npm install –global cross-env 3) remove “cross-env”: “^5.0.1”, from package.json file devDependencies section. Actually, you can skip this step and keep package.json intact. If you prefer. 4) run npm install –no-bin-links 5) run npm run … Read more