yaroslavche/easyadminlte

EasyAdmin AdminLTE layout

Installs: 19

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 1

Language:Twig

Type:symfony-bundle

dev-main 2023-02-10 23:34 UTC

This package is auto-updated.

Last update: 2024-11-11 03:23:20 UTC


README

Make sure that you have installed symfony bundles admin and webpack. Install package:

$ composer require yaroslavche/easyadminlte
$ yarn install --force

Add easyadminlte Webpack Encore entry to webpack.config.js:

# webpack.config.js
Encore
    // ...
    .addEntry('easyadminlte', './vendor/yaroslavche/easyadminlte/src/Resources/assets/dist/easyadminlte.js')

Build assets

$ yarn watch

Extend DashboardController from AbstractAdminLTEDashboardController instead of AbstractDashboardController

# src/Controller/Admin/DashboardController.php
use Yaroslavche\EasyAdminLTE\Controller\AbstractAdminLTEDashboardController;

class DashboardController extends AbstractAdminLTEDashboardController

Troubleshooting

Could not find a version of package

# composer.json
"minimum-stability": "dev",

yarn watch Missed import

$ yarn add --dev @fortawesome/fontawesome-free bootstrap jquery admin-lte

There are no registered paths for namespace "!EasyAdminLTE".

# config/bundles.php
Yaroslavche\EasyAdminLTE\EasyAdminLTEBundle::class => ['all' => true],