PHP Classes

File: README.md

Recommend this page to a friend!
  Classes of Roman Kozin   Laravel Material Dashboard Pro   README.md   Download  
File: README.md
Role: Documentation
Content type: text/markdown
Description: Read me
Class: Laravel Material Dashboard Pro
Integrate the Material Dashboard Pro in Laravel
Author: By
Last change:
Date: 3 days ago
Size: 2,625 bytes
 

Contents

Class file image Download

Material Dashboard PRO for Laravel

Build Status Scrutinizer Code Quality [Github All Releases]()

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

|Laravel/PHP|5.5 |5.6 |5.7 |7.x |8.x | |-----------|------------------|------------------|------------------|------------------|------------------| |5.x |:x:|:x:|:x:|:x:|:x:| |6.x |:x:|:x:|:x:|:x:|:x:| |7.x |:x:|:x:|:x:|:heavy_check_mark:|:heavy_check_mark:| |8.x |:x:|:x:|:x:|:heavy_check_mark:|:heavy_check_mark:|

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

Layouts, Templates, Widgets

|Name|Blade reference| |----|---------------| |Dashboard|mdp::layouts.main| |User Sign In / Sign Up|mdp::layouts.user.auth-v1|

Demo Pages

Dashboard Sign In Sign Up