public function store(CreateUploadRequest $request)
    {
        $input = $request->all();

        $upload = $this->repository->create($input, null, $request->user());
        $upload->load($request->getWith());

        return $this->sendResponse($upload, 'Upload saved successfully.');
    }
public function store(CreateUploadRequest $request)
    {
        $input = $request->all();

        $upload = $this->repository->create($input, null, $request->user());
        $upload->load($request->getWith());

        return $this->sendResponse($upload, 'Upload saved successfully.');
    }
public function store ( CreateUploadRequest $ request ) { $ input = $ request -> all ( ) ; $ upload = $ this -> repository -> create ( $ input , null , $ request -> user ( ) ) ; $ upload -> load ( $ request -> getWith ( ) ) ; return $ this -> sendResponse ( $ upload , 'Upload saved successfully.' ) ; }
Store a newly created Upload in storage.

@param CreateUploadRequest $request
@return JsonResponse
Store a newly created Upload in storage .