I get this error in image upload preview while the same procedure in another package is ok:
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');
}