kield01 / laravel-material-dashboard-pro
Material Dashboard PRO from Creative Tim
Installs: 100
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 3
Forks: 0
Open Issues: 0
Language:CSS
Requires
This package is auto-updated.
Last update: 2024-11-22 15:34:02 UTC
README
Installation
composer require kield01/laravel-material-dashboard-pro
Configuration
To publish needed configs and resources (js, css) run:
php artisan vendor:publish --provider=KielD01\LaravelMaterialDashboardPro\Providers\CoreServiceProvider
Versions compatibility
Menu Building
Menu items has to be placed at the config/mdp/menu.php
.
Here is an example of the possible menu structure:
<?php declare(strict_types=1); return [ [ 'title' => 'Dashboard', 'link' => [ 'type' => MenuItemLinkType::ROUTE, 'route' => 'dashboard.index', ], 'icon' => [MaterialIcon::class, 'dashboard'], ], [ 'title' => 'Users', 'icon' => [FontAwesomeIcon::class, 'login'], 'children' => [ [ 'title' => 'Create User', 'link' => [ 'type' => MenuItemLinkType::URI, 'uri' => '/mdp/users/create', ], ] ] ], ];
Link type MenuItemLinkType::ROUTE
usage strongly recommended instead of MenuItemLinkType::URI