Search
 
SCRIPT & CODE EXAMPLE
 

PHP

laravel 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 :: Difference in seconds between datetime 
Php :: yajra laravel datatables rawcolumn 
Php :: laravel eloquent bulk insert 
Php :: EntityManager get repository 
Php :: Use DateTime() and DateInterval() Objects for PHP 5.3 and Above and Calculate the Difference Between Two Dates Using PHP 
Php :: how to check path laravel 
Php :: connect rabbitMQ 
Php :: string between two strings 
Php :: update query laravel 
Php :: laravel check if api request 
Php :: php strpos 
Php :: get users other than specific role laravel role spatie 
Php :: dependable validation in laravel 
Php :: php header not working 
Php :: remove behind comma php 
Php :: laravel exclude field 
Php :: load session in codeigniter 
Php :: php + set timezone berlin 
Php :: alert for empty input in php 
Php :: laravel wrong timestamp 
Php :: php get first element of iterator class 
Php :: Databases supported by php 
Php :: wp_customize image 
Php :: pagination in codeigniter with example 
Php :: php artisan vendor:publish --provider="MaatwebsiteExcelExcelServiceProvider 
Php :: laravel debugbar false 
Php :: create a module laravel 
Php :: php select using prepared statements 
Php :: eloquent insert into select 
Php :: remove time from date in carbon 
ADD CONTENT
Topic
Content
Source link
Name
9+9 =