Search
 
SCRIPT & CODE EXAMPLE
 

PHP

use font awesome in laravel 8

npm install (if you have already, no need)npm install --save @fortawesome/fontawesome-free
Comment

integrate fontawesome in blade laravel

// In AppServiceProvider.php :
public function boot()
{
  Blade::directive('icon', fn ($expression) => "<i class="fas fa-{{ $expression }}"></i>");
}

// In the blade template:
<p>
  <span>@icon('user-plus')</span>
  <strong class="text-2xl">Create user</strong>
</p>
Comment

PREVIOUS NEXT
Code Example
Php :: php string functions 
Php :: laravel on cascade set null 
Php :: eloquent batch insert 
Php :: Advanced Custom Fields get sub field image 
Php :: change default user table name laravel 
Php :: create database in php 
Php :: symfony messenger transport 
Php :: symfony form get errors 
Php :: find value in array php 
Php :: laravel where 2 column 
Php :: how to create singleton laravel 
Php :: wordpress change post format 
Php :: php while jump to next loop 
Php :: logout from all the devices in the jwt api laravel 
Php :: laravel use controller function in another controller 
Php :: [ERROR] InvalidArgumentException: Wrong file in C:xampphtdocsmagento2.4libinternalMagentoFrameworkImageAdapterGd2.php:64 Stack trace 
Php :: php if time is greater than 
Php :: laravel collection partition 
Php :: remove blank data in multidimention array in laravel 
Php :: PDO encode result recordset to utf8 
Php :: PHP 2-Dimentional array 
Php :: laravel multiple copy record 
Php :: laravel order by before group by 
Php :: return json in php 
Php :: woocommerce_variation_option_name on frontend 
Php :: join string php 
Php :: remove last comma php 
Php :: how to go one folder back in __dir__ in php 
Php :: php ksort 
Php :: downgrade php version 
ADD CONTENT
Topic
Content
Source link
Name
3+8 =