livewire validation

Solutions on MaxInterview for livewire validation by the best coders in the world

showing results for - "livewire validation"
Catalina
03 Feb 2019
1      $validatedData = $this->validate([
2            'name' => 'required|min:6',
3            'email' => 'required|email',
4        ]);
Victoria
23 Jul 2019
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