public function store(UploadImageRequest $request)
    {
        $upload = $this->uploader->upload($request->file('image'), storage_path('app/laramanager/images'));

        return $this->imageRepository->create($upload->toArray());
    }
public function store(UploadImageRequest $request)
    {
        $upload = $this->uploader->upload($request->file('image'), storage_path('app/laramanager/images'));

        return $this->imageRepository->create($upload->toArray());
    }
public function store ( UploadImageRequest $ request ) { $ upload = $ this -> uploader -> upload ( $ request -> file ( 'image' ) , storage_path ( 'app/laramanager/images' ) ) ; return $ this -> imageRepository -> create ( $ upload -> toArray ( ) ) ; }
Upload and save image information

@param UploadImageRequest $request
@return \Illuminate\Http\JsonResponse
@throws \Exceptioni
@throws \Throwable
Upload and save image information