コード例 #1
0
ファイル: Manager.php プロジェクト: ARCANESOFT/Core
 /**
  * Sync the current name wih the sidebar items.
  *
  * @return self
  */
 private function syncCurrentName()
 {
     $this->items->setCurrent($this->currentName);
     return $this;
 }
コード例 #2
0
ファイル: Item.php プロジェクト: ARCANESOFT/Core
 /**
  * Get the instance as an array.
  *
  * @return array
  */
 public function toArray()
 {
     return ['name' => $this->name, 'title' => $this->title, 'url' => $this->url, 'icon' => $this->icon, 'active' => $this->active, 'roles' => $this->roles, 'permissions' => $this->permissions, 'children' => $this->children->toArray()];
 }