Using font awesome in a Laravel project

Apr 13, 2019 by Thibault | 773 views

Font Awesome is a fantastic icon set to improve your web application. The integration in Laravel requires a few additional steps...


Download and install fontawesome using npm:

npm install @fortawesome/fontawesome-free


In resources/assets/sass/app.scss, add the dependency:

@import '~@fortawesome/fontawesome-free/css/all.css';


Rebuild the app.css stylesheet of your application:

npm run prod

Or, to build the development version of your stylesheet:

npm run dev