Skip to content

Commit 27bec3a

Browse files
committed
Update component attributes
1 parent 1683b35 commit 27bec3a

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

resources/views/users/settings/profile.blade.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<div class="flex-grow space-y-6">
1515
<div class="space-y-1">
1616
<x-label for="name"/>
17-
<x-input name="name" value="{{ Auth::user()->name() }}" required />
17+
<x-input name="name" :value="Auth::user()->name()" required />
1818
</div>
1919

2020
<div class="space-y-1">
@@ -31,7 +31,7 @@
3131
</p>
3232
<div class="flex items-center">
3333
<div class="flex-shrink-0 inline-block overflow-hidden" aria-hidden="true">
34-
<x-avatar search="{{ Auth::user()->emailAddress() }}" provider="gravatar" class="rounded-full h-32 w-32" />
34+
<x-avatar :search="Auth::user()->emailAddress()" provider="gravatar" class="rounded-full h-32 w-32" />
3535
<span class="mt-2 text-sm text-gray-500">Change your avatar on <a href="https://gravatar.com/" class="text-lio-700">Gravatar</a>.</span>
3636
</div>
3737
</div>
@@ -41,8 +41,8 @@
4141
<div class="grid grid-cols-12 gap-6">
4242
<div class="col-span-12">
4343
<x-label for="email" />
44-
<x-email name="email" value="{{ Auth::user()->emailAddress() }}" required />
45-
44+
<x-email name="email" :value="Auth::user()->emailAddress()" required />
45+
4646
@unless(Auth::user()->hasVerifiedEmail())
4747
<span class="mt-2 text-sm text-gray-500">
4848
This email address is not verified yet.
@@ -53,12 +53,12 @@
5353

5454
<div class="col-span-12 sm:col-span-6">
5555
<x-label for="username" />
56-
<x-input name="username" value="{{ Auth::user()->username() }}" required />
56+
<x-input name="username" :value="Auth::user()->username()" required />
5757
</div>
5858

5959
<div class="col-span-12 sm:col-span-6">
6060
<x-label for="twitter">Twitter handle</x-label>
61-
<x-input name="twitter" value="{{ Auth::user()->twitter() }}" prefix-icon="heroicon-o-at-symbol" />
61+
<x-input name="twitter" :value="Auth::user()->twitter()" prefix-icon="heroicon-o-at-symbol" />
6262
<span class="mt-2 text-sm text-gray-500">
6363
Enter your Twitter handle without the leading @ symbol
6464
</span>
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<x-input
22
type="email"
3-
name="{{ $name }}"
3+
name="{{ $name }}"
4+
:value="$value"
45
{{ $attributes}}
56
/>

0 commit comments

Comments
 (0)