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 :: Call to a member function move() on string 
Php :: laravel eloquent get specific columns using with function 
Php :: php full form 
Php :: stdclass not found laravel 
Php :: laral db innodb 
Php :: laravel continue 
Php :: get unique array from multidimentional array by value in php 
Php :: General error: 1390 Prepared statement contains too many placeholders 
Php :: php get data from url 
Php :: laravel response header 
Php :: write php online 
Php :: Remove All Spaces Out of a String in PHP 
Php :: wordpress get plugin root directory 
Php :: Delete quotes in php 
Php :: search in laravel 8 
Php :: share wordpress post on whatsapp without plugin 
Php :: explode segments url php 
Php :: where in laravel 
Php :: how to get http parameters in php 
Php :: php array_intersect 
Php :: laravel sanctum axios Unauthenticated 
Php :: how to use seeders in laravel 
Php :: associate laravel 
Php :: laravel check if email is verified 
Php :: db transaction laravel 
Php :: php sprintf 
Php :: how make a variable global php 
Php :: php get first day of month 
Php :: php custom autoload 
Php :: php invoke 
ADD CONTENT
Topic
Content
Source link
Name
9+1 =