public function __construct($name, $conf) { $this->name = $name; // creating a laravel collection ofr storing enu items $this->items = new Collection(); $this->conf = $conf; }