Skip to content

Instantly share code, notes, and snippets.

@aabir
Created April 20, 2016 15:01
Show Gist options
  • Save aabir/334e81dfee8638364671b9069f927bf8 to your computer and use it in GitHub Desktop.
Save aabir/334e81dfee8638364671b9069f927bf8 to your computer and use it in GitHub Desktop.
Rapyd demoController anyDatatree method $root object var_dump result.
object(Zofe\Rapyd\Demo\Menu)[204]
protected 'guarded' =>
array (size=0)
empty
protected 'table' => string 'demo_menus' (length=10)
protected 'parentColumn' => string 'parent_id' (length=9)
protected 'leftColumn' => string 'lft' (length=3)
protected 'rightColumn' => string 'rgt' (length=3)
protected 'depthColumn' => string 'depth' (length=5)
protected 'orderColumn' => null
protected 'scoped' =>
array (size=0)
empty
protected 'connection' => null
protected 'primaryKey' => string 'id' (length=2)
protected 'perPage' => int 15
public 'incrementing' => boolean true
public 'timestamps' => boolean true
protected 'attributes' =>
array (size=8)
'id' => int 1
'title' => string '--- the root node of the menu ---' (length=33)
'parent_id' => null
'lft' => int 1
'rgt' => int 18
'depth' => int 0
'created_at' => string '2016-04-18 16:41:20' (length=19)
'updated_at' => string '2016-04-20 14:49:02' (length=19)
protected 'original' =>
array (size=8)
'id' => int 1
'title' => string '--- the root node of the menu ---' (length=33)
'parent_id' => null
'lft' => int 1
'rgt' => int 18
'depth' => int 0
'created_at' => string '2016-04-18 16:41:20' (length=19)
'updated_at' => string '2016-04-20 14:49:02' (length=19)
protected 'relations' =>
array (size=0)
empty
protected 'hidden' =>
array (size=0)
empty
protected 'visible' =>
array (size=0)
empty
protected 'appends' =>
array (size=0)
empty
protected 'fillable' =>
array (size=0)
empty
protected 'dates' =>
array (size=0)
empty
protected 'dateFormat' => null
protected 'casts' =>
array (size=0)
empty
protected 'touches' =>
array (size=0)
empty
protected 'observables' =>
array (size=0)
empty
protected 'with' =>
array (size=0)
empty
protected 'morphClass' => null
public 'exists' => boolean true
public 'wasRecentlyCreated' => boolean false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment