original_string: 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,
          ]);
      }
code: 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,
          ]);
      }
code_tokens: 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 , ] ) ; }
docstring: Create a item in laravel-admin left side menu.
  
  @param string $title
  @param string $uri
  @param string $icon
  @param int    $parentId
docstring_tokens: Create a item in laravel - admin left side menu .