Using font awesome in a Laravel project

Apr 13, 2019 by Thibault Debatty - 463 views

https://cylab.be/blog/21/using-font-awesome-in-a-laravel-project

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

Install

Download and install fontawesome using npm:

npm install @fortawesome/fontawesome-free

Import

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

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

Compile

Rebuild the app.css stylesheet of your application:

npm run prod

Or, to build the development version of your stylesheet:

npm run dev