whatwedo/twig-bootstrap-icons
twig/ext or laravelcollective/html). Laravel’s Blade users would need a workaround (e.g., custom Blade directive).laravelcollective/html) is compatible; custom Twig setups may need validation.alt), enabling styling flexibility without hardcoding.@font-face) preferred for performance?laravelcollective/html or custom Twig setup) or Symfony applications.Laravel (Twig):
composer require whatwedo/twig-bootstrap-icons.app/Providers/AppServiceProvider:
public function register()
{
$this->app->make('twig')->addExtension(new \whatwedo\TwigBootstrapIcons\BootstrapIconsExtension());
}
{{ bootstrap_icon('icon-name', { class: '...' }) }}.Symfony:
config/bundles.php:
whatwedo\TwigBootstrapIcons\whatwedoTwigBootstrapIconsBundle::class => ['all' => true],
Laravel (Blade Workaround):
{{ bootstrap_icon('house') }}).undefined function 'bootstrap_icon'.class).|raw filter if using untrusted data).bootstrap_icon syntax and attribute options for the team.How can I help you explore Laravel packages today?