$imagePath = (request('image')->store('uploads', 'public'));
//dd($imagePath);
$image= Image::make(public_path("storage/{$imagePath}"))->fit(1000,1000);
$image->save();
auth()->user()->posts()->create([
'caption'=>$data['caption'],
'image'=>$imagePath,
]);
this is my code the $image variable is not getting anything and it push back the error "image source not readable" kindly help me in this. Thanks in Advance :)
Try getting the stored image using the
Storage
facade.