appstract / laravel-blade-directives

A collection of nice Laravel Blade directives
MIT License
858 stars 75 forks source link

Directive @fa with FontAwsome 5.x #37

Closed innovaweb-dev closed 6 years ago

innovaweb-dev commented 6 years ago

Hi,

Thank you for this good repository. Just for your information, since Font Awesome 5.x, the syntax have changed. For example:

// FontAwesome 5.x
<i class="fas fa-user"></i>

// @fa('user') don't working
<i class="fa fa-user"></i>

// @fa('user', 'fas') working with FontAwesome 5.x
// But it's not correct syntax
<i class="fa fa-user fas"></i>

Because since 5.x, we have three icon styles.

ovanschie commented 6 years ago

And also Light...

I think best approach is to create separate directives (@fas, @far, @fal, @fab).