'Laravel 8 - Can't write image data to path

My Project Works Perfectly On Local Server But After I Have Upload It To Public Server. All Add Images Functions Give Me Same Error

Can't write image data to the path (upload/... I Am Using Laravel 8

here is my code when i add Service image

    if($request->hasFile('himage')) {

       $image=$request->file('himage');

       $imageName='service_header_'.$id.'.'.time().'.'.$image->getClientOriginalExtension();

       Image::make($image)->save('uploads/service/'.$imageName);



       OurService::where('service_id',$id)->update([

         'header_image'=>$imageName,

         'updated_at'=>Carbon::now()->toDateTimeString(),

       ]);

     }



  if($update){

   return redirect('admin/service/edit/'.$slug)->with('success', 'Service Update Successfully!');

   }else{

     return back()->with('error', 'Opps! Please try again');

 }


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source