Level 122
Some other code that you are not showing.
I get this error in image upload preview "Call to a member function temporaryUrl() on string"
View:
<div>
@if($photo)
<img src="{{ $photo->temporaryUrl() }}">
@endif
<input type="file" wire:model="photo">
</div>
Class:
use WithFileUploads;
public $photo;
public function render()
{
return view('livewire.coach-new');
}
Please or to participate in this conversation.