Search
 
SCRIPT & CODE EXAMPLE
 

PHP

laravel blade fontawesome

// 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 :: laravel fontawesome 
Php :: php get current page url 
Php :: php != operator 
Php :: Show all laravel valet folders 
Php :: rodar migration especifica laravel 
Php :: echo errors php 
Php :: laravel with and where 
Php :: convert png image transparent into webp php 
Php :: artisan laravel require bootstrap 
Php :: run laravel seeder 
Php :: Laravel nova resolveUsing 
Php :: mysql Cannot pass parameter 2 by reference 
Php :: how to get client ip address in php 
Php :: array push in php 
Php :: withsuccess laravel 8 
Php :: How to display custom field in wordpress? 
Php :: popular cms 
Php :: yii2 gridview action change urls 
Php :: laravel collection collapse 
Php :: How do I get a YouTube video thumbnail from the YouTube API? 
Php :: acf wordpress loop through and display blog posts order by date and type 
Php :: php apns notification source code 
Php :: laravel create many to many table 
Php :: add custom shortcode in contact form 7 
Php :: twig resto 
Php :: laravel url with parameters blade 
Php :: laravel belongstomany prevent duplicates attach 
Php :: php session array 
Php :: execute php mysql securely 
Php :: php convert string to array 
ADD CONTENT
Topic
Content
Source link
Name
3+3 =