I'm Using Laravel 8 and I'm Facing this error.

> 
> Can't write image data to path (/home/u520518518/domains/dev.peacockindia.in/public\_html/public/Backend/Image/Brand/2003012866\_Brand-Image\_Mobile\_jpg)
> 
> 
> 

This is My Code

```
if($request->logo){
    $image = $request->file('logo');
    $img   = rand().'_'.'Brand-Image'.'_'.$request->title.'_'.$image->getClientOriginalExtension();
    $loc   = public_path('Backend/Image/Brand/'.$img);
    Image::make($image)->save($loc);
    $brand->logo   = $img;
}

```