I’m trying to upload an image but when I (dd) the image request I got like this:
"image" => "C:\fakepath\visual-reverse-image-search-v2_intro.jpg"
I need just the name of the image to hash it then storage and save it in the database
My blade code:
<form wire:submit.prevent="addPost" enctype="multipart/form-data">
<div class="form-group">
<input type="file" class="form-control" wire:model="image">
</div>
<button class="btn btn-success" type="submit">Create</button>
</form>