etrepat / baum

Baum is an implementation of the Nested Set pattern for Laravel's Eloquent ORM.
http://etrepat.com/baum
MIT License
2.24k stars 459 forks source link

Usage::: Where I have to execute the commands #238

Open dario-mahalambe opened 8 years ago

dario-mahalambe commented 8 years ago

Where I have to execute this command? On the controller?on tinker ?

Creating a root node

$root = Category::create(['name' => 'Root category']);