public function mount($prefix = null) { if ($prefix) { $this->router->group(['prefix' => $prefix], function () { $this->registerRoutes(); }); } else { $this->registerRoutes(); } }