1 $validatedData = $this->validate([
2 'name' => 'required|min:6',
3 'email' => 'required|email',
4 ]);
1 @if ($photo)
2 @php
3 try {
4 $url = $photo->temporaryUrl();
5 $photoStatus = true;
6 }catch (RuntimeException $exception){
7 $this->photoStatus = false;
8 }
9 @endphp
10 @if($photoStatus)
11 <img src="{{ $url }}">
12 @else
13 Something went wrong while uploading the file.
14 @endif
15 @endif