Installation

Install via composer

Note

This bundle uses symfony flex recipes to install further files via composer. Please check that flex is already configured in your project as it is part of the installation.

$ composer require enhavo/dashboard-bundle ^0.8

Add node package

Execute following command to add required node package:

$ yarn add @enhavo/dashboard

Register encore package

Add following entrypoint to the enhavo section in webpack.config.js file.

// import
const DashboardPackage = require('@enhavo/dashboard/Encore/EncoreRegistryPackage');

// register package
.register(new DashboardPackage())

Change configuration

Update your config/packages/enhavo.yaml

enhavo_app:
    menu:
      dashboard:
          type: dashboard

Build assets

Execute following commands to build your asset files.

$ yarn encore dev
% yarn routes:dump