DEV Community

Cover image for Using AdminLTE Blade Components in Laravel
Jalal Uddin
Jalal Uddin

Posted on

1 3

Using AdminLTE Blade Components in Laravel

AdminLTE3 is one of the most popular Bootstrap admin template which is completely free. We can use AdminLTE in our Laravel projects in several ways. But since Laravel 7.x, we can use Blade Components like <x-component /> and make our development faster than before.

We, backed developers, are mainly focused on Backed. Thus we need rapidness in frontend of view of Admin Panel. Using such a template of bootstrap is one of the first steps towards rapid-development. Another step can be using Blade Components in laravel.

Installation

To get started with Laravel Blade components, you need to install a composer package:

composer require dgvai/laravel-adminlte-components
Enter fullscreen mode Exit fullscreen mode

Extracting Plugins

php artisan vendor:publish --tag=adminlte-dg-plugins
Enter fullscreen mode Exit fullscreen mode

Configurations

  • Option 1: You can use this package, stand-alone with AdminLTE installed in your app. You just need to add an @yield('js') at the bottom of your master blade layout.

  • Option 2: [Recommended] Or, if you use jeroennoten/Laravel-AdminLTE package, then you do not need to add anything at master. I will recommend to use this package.

If you choose Option 2, paste this config into the config/adminlte.php file in plugins key: PASTE this configuation

Usage

You can find full documentation of usage from the repository link.

Image of Datadog

Create and maintain end-to-end frontend tests

Learn best practices on creating frontend tests, testing on-premise apps, integrating tests into your CI/CD pipeline, and using Datadog’s testing tunnel.

Download The Guide

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay