Skip to content

Commit

Permalink
Update register form
Browse files Browse the repository at this point in the history
  • Loading branch information
Hasnayeen committed Jul 17, 2024
1 parent 02b1475 commit 78fc0a3
Showing 1 changed file with 18 additions and 14 deletions.
32 changes: 18 additions & 14 deletions stubs/app/Xumina/Pages/Auth/Register.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
use App\Xumina\{{ $panel }}\Controllers\Auth\RegisteredUserController;
use Hasnayeen\Xumina\Components\Form;
use Hasnayeen\Xumina\Components\Form\Input;
use Hasnayeen\Xumina\Components\Section;
use Hasnayeen\Xumina\Pages\AuthPage;
use Illuminate\Support\Facades\Route;

Expand All @@ -15,20 +16,23 @@ class Register extends AuthPage
public function outline(): array
{
return [
Form::make('register')
->columns(1)
->fields([
Input::make('name'),
Input::make('email')
->type('email'),
Input::make('password')
->type('password'),
Input::make('confirm_password')
->type('password'),
])
->submitTo('xumina.{{ $panelKebab }}.auth.register.store')
->submitButtonLabel(__('Register'))
->cancelButton(false)
Section::make('register')
->items([
Form::make('register')
->columns(1)
->fields([
Input::make('name'),
Input::make('email')
->type('email'),
Input::make('password')
->type('password'),
Input::make('password_confirmation')
->type('password'),
])
->submitTo('xumina.{{ $panelKebab }}.auth.register.store')
->submitButtonLabel(__('Register'))
->cancelButton(false)
])
];
}

Expand Down

0 comments on commit 78fc0a3

Please sign in to comment.