/**
  * Store a newly created SisterDownloadApp in storage.
  *
  * @param CreateSisterDownloadAppRequest $request
  *
  * @return Response
  */
 public function store(CreateSisterDownloadAppRequest $request)
 {
     $input = $request->all();
     $input['objectId'] = str_random(10);
     if ($request->file('app_img')) {
         $uploadImage = $this->uploadImage($request->file('app_img'), '/sister_app_photo/');
         $input['app_img'] = $uploadImage['resize_url'][0];
     }
     $sisterDownloadApp = $this->sisterDownloadAppRepository->create($input);
     Flash::success('SisterDownloadApp saved successfully.');
     return redirect(route('sisterDownloadApps.index'));
 }
 /**
  * Store a newly created SisterDownloadApp in storage.
  * POST /sisterDownloadApps
  *
  * @param Request $request
  *
  * @return Response
  */
 public function store(Request $request)
 {
     if (sizeof(SisterDownloadApp::$rules) > 0) {
         $validator = $this->validateRequestOrFail($request, SisterDownloadApp::$rules);
         if ($validator) {
             return $validator;
         }
     }
     $input = $request->all();
     $input['objectId'] = str_random(10);
     $sisterDownloadApps = $this->sisterDownloadAppRepository->create($input);
     return $this->sendResponse($sisterDownloadApps->toArray(), "SisterDownloadApp saved successfully");
 }