Using font awesome in a Laravel project

Apr 13, 2019 by Thibault Debatty | 3765 views

Laravel

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

This blog post is licensed under CC BY-SA 4.0

This website uses cookies. More information about the use of cookies is available in the cookies policy.
Accept