if(request()->hasFile('image')){
$path = request()->image->store('public/image');
$path=str_replace('public/','',$path);
$data['image']=$path;
}
User::findOrCreate->($data);
return back();
}
والعرض على طريقه
{{asset('storage/'. auth()->user()->image)}}