Skip to content
This repository has been archived by the owner on Oct 1, 2021. It is now read-only.

Commit

Permalink
feat: use deferred model updates for registration form (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
marianogoldman authored Nov 24, 2020
1 parent 0983731 commit 26687cf
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 13 deletions.
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
"arkecosystem/ui": "^1.0",
"spatie/laravel-personal-data-export": "^1.3",
"spatie/laravel-medialibrary": "^8.9",
"konceiver/laravel-data-bags": "^1.1"
"konceiver/laravel-data-bags": "^1.1",
"php": "^7.4"
},
"autoload": {
"psr-4": {
Expand Down
20 changes: 11 additions & 9 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 6 additions & 3 deletions resources/views/auth/register-form.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ class="flex flex-col p-8 mx-4 border rounded-lg border-theme-secondary-200 md:mx
<div class="mb-8">
<div class="flex flex-1">
<x-ark-input
model="state.name"
wire:model.defer="state.name"
no-model
name="name"
:label="trans('fortify::forms.name')"
autocomplete="name"
Expand All @@ -29,7 +30,8 @@ class="w-full"
<div class="mb-8">
<div class="flex flex-1">
<x-ark-input
model="state.username"
wire:model.defer="state.username"
no-model
type="text"
name="username"
:label="trans('fortify::forms.username')"
Expand All @@ -48,7 +50,8 @@ class="w-full"
<div class="mb-8">
<div class="flex flex-1">
<x-ark-input
model="state.email"
wire:model.defer="state.email"
no-model
type="email"
name="email"
:label="trans('fortify::forms.email')"
Expand Down

0 comments on commit 26687cf

Please sign in to comment.