Level 50
I think this should be
public_path('course/image')
not this
public_path('course\image')
1 like
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
if($request->hasFile('image')){ $extension=$request->image->extension(); $filename_image=time().".".$extension; $request->image->move(public_path('course\image'),$filename_image); }
I think this should be
public_path('course/image')
not this
public_path('course\image')
Please or to participate in this conversation.