/** * View registration page. * * @param \Orchestra\Contracts\Foundation\Listener\Account\ProfileCreator $listener * * @return mixed */ public function create(Listener $listener) { $eloquent = Foundation::make('orchestra.user'); $form = $this->presenter->profile($eloquent, 'orchestra::register'); $form->extend(function ($form) { $form->submit = 'orchestra/foundation::title.register'; }); $this->fireEvent('form', [$eloquent, $form]); return $listener->showProfileCreator(compact('eloquent', 'form')); }