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 :: php print object 
Php :: use smarty variable in php 
Php :: laravel create session table 
Php :: get pages with template wp php 
Php :: remove more than one space in string php 
Php :: calculate array length in php 
Php :: symfony messenger rabbitMQ 
Php :: convert array to IlluminateHttpRequest 
Php :: array value search in php 
Php :: laravel model set new attribute 
Php :: laravel model::query 
Php :: IlluminateContractsContainerBindingResolutionException 
Php :: rule for radio button in laravel 
Php :: php search multidimensional array for multiple values 
Php :: html in php 
Php :: laravel model column default value 
Php :: eloquent insert 
Php :: laravel datatable addColumn not working 
Php :: laravel filesystem link 
Php :: How To Force Redirect HTTP To HTTPS In Laravel Using ServiceProvider 
Php :: php curl detect 404 
Php :: laravel sharing image 
Php :: object of class stdclass could not be converted to string php laravel 
Php :: echo php in html 
Php :: get all error message in array form laravel validation in laravel 
Php :: php join 
Php :: Calling itself a static function in php 
Php :: php compare dates 
Php :: Drupal 8 custom form image field 
Php :: Laravel check for constraint violation 
ADD CONTENT
Topic
Content
Source link
Name
3+9 =