Render Bootstrap Icons or Font Awesome Free SVGs next to your AdminLTE menu labels. The application chooses which sets to register.
Add oxblade-icons with its laravel feature, plus the sets you want. The tested set and renderer versions are 0.1.0.
oxblade-icons = { version = "0.1.0", features = ["laravel"] }
oxblade-bootstrap-icons = "0.1.0"
oxblade-fa = "0.1.0"
With the Blade and AdminLTE providers already registered, add the icon provider in the same application:
use oxblade_icons::{icon_set, laravel::IconsServiceProvider};
providers.add(IconsServiceProvider::new()
.set(icon_set!(oxblade_bootstrap_icons))
.set(icon_set!(oxblade_fa::solid))
.set(icon_set!(oxblade_fa::regular))
.set(icon_set!(oxblade_fa::brands)));
For example, set "icon": "bi-house", "icon": "fas-house", "icon": "far-calendar", or
"icon": "fab-github" on a menu entry. Omit the field for a text-only menu. Register the set for
every icon name you supply. These names replace PHP's class lists such as bi bi-house; the
inline SVG is decorative and the link text stays visible. Keep Bootstrap Icons CSS if other
widgets or application views still use its font classes.
Bootstrap Icons artwork is MIT-licensed. Font Awesome Free artwork is by Fonticons, Inc. under CC BY 4.0. The optional set supplies the original attribution comments and its full notice. Preserve the attribution when redistributing the SVGs, including through minifiers and build tools.