protected static function createMenu($title, $uri, $icon = 'fa-bars', $parentId = 0)
    {
        $menuModel = config('admin.database.menu_model');

        $lastOrder = $menuModel::max('order');

        $menuModel::create([
            'parent_id' => $parentId,
            'order'     => $lastOrder + 1,
            'title'     => $title,
            'icon'      => $icon,
            'uri'       => $uri,
        ]);
    }
protected static function createMenu($title, $uri, $icon = 'fa-bars', $parentId = 0)
    {
        $menuModel = config('admin.database.menu_model');

        $lastOrder = $menuModel::max('order');

        $menuModel::create([
            'parent_id' => $parentId,
            'order'     => $lastOrder + 1,
            'title'     => $title,
            'icon'      => $icon,
            'uri'       => $uri,
        ]);
    }
protected static function createMenu ( $ title , $ uri , $ icon = 'fa-bars' , $ parentId = 0 ) { $ menuModel = config ( 'admin.database.menu_model' ) ; $ lastOrder = $ menuModel :: max ( 'order' ) ; $ menuModel :: create ( [ 'parent_id' => $ parentId , 'order' => $ lastOrder + 1 , 'title' => $ title , 'icon' => $ icon , 'uri' => $ uri , ] ) ; }
Create a item in laravel-admin left side menu.

@param string $title
@param string $uri
@param string $icon
@param int    $parentId
Create a item in laravel - admin left side menu .