Upload beautify
This commit is contained in:
@@ -17,6 +17,17 @@
|
||||
@csrf
|
||||
@method('patch')
|
||||
|
||||
@php
|
||||
$avatarHash = optional($user->profile)->avatar_hash;
|
||||
$avatarInitialSrc = \App\Support\AvatarUrl::forUser((int) $user->id, $avatarHash, 128);
|
||||
@endphp
|
||||
|
||||
<div
|
||||
data-avatar-uploader="true"
|
||||
data-upload-url="{{ route('avatar.upload') }}"
|
||||
data-initial-src="{{ $avatarInitialSrc }}"
|
||||
></div>
|
||||
|
||||
<div>
|
||||
<x-input-label for="name" :value="__('Name')" />
|
||||
<x-text-input id="name" name="name" type="text" class="mt-1 block w-full" :value="old('name', $user->name)" required autofocus autocomplete="name" />
|
||||
|
||||
Reference in New Issue
Block a user