Extends Laravels eloquent model with tree structure functionality