PHP Classes

How to Use a PHP Dashboard Builder to Add Dashboards to Laravel Applications Using the Package Laravel Material Dashboard Pro: Integrate the Material Dashboard Pro in Laravel

Recommend this page to a friend!
  Info   Documentation   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2024-08-20 (15 hours ago) RSS 2.0 feedNot yet rated by the usersTotal: Not yet counted Not yet ranked
Version License PHP version Categories
laravel-material-das 1.0The PHP License5HTML, Libraries, Content management, GUI, D..., P...
Description 

Author

This package can integrate the Material Dashboard Pro in Laravel.

It provides a Laravel service provider class that can register assets, views, view composers, routes, and locales to use the Material Dashboard Pro theme in Laravel applications.

Configuration files using a PHP array can be provided to configure details like menu items.

Picture of Roman Kozin
  Performance   Level  
Innovation award
Innovation award
Nominee: 3x

Winner: 2x

 

Documentation

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


  Files folder image Files (72)  
File Role Description
Files folder imagedocker (1 file)
Files folder imagesrc (1 file, 10 directories)
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file composer.lock Data Auxiliary data
Accessible without login Plain text file README.md Doc. Read me

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads  
 100%
Total:0
This week:0