Method |
Description |
|
__construct ( array $attributes = [] ) |
Create a new Eloquent model instance. |
|
buildSelectOptions ( array $elements = [], integer $parentId, string $prefix = '' ) : array |
Build options of select field in form. |
|
delete ( ) : boolean | null |
Delete current item and its children. |
|
roles ( ) : Illuminate\Database\Eloquent\Relations\BelongsToMany |
A Menu belongs to many roles. |
|
saveTree ( array $tree = [], integer $parentId ) |
Save a tree from a tree like array. |
|
toTree ( array $elements = [], integer $parentId ) : array |
Format data to tree like array. |
|