/**
  * Update the specified resource in storage.
  *
  * @param  Request  $request
  * @param  int  $id
  * @return Response
  */
 public function update(AdminSourcesRequest $request, $id)
 {
     $source = Source::findOrFail($id);
     // if a thumbnail is uploaded send file to be processed (cropped, resized ..etc) using our custom handler
     if ($request->hasFile('thumb')) {
         $this->dispatchFrom('\\App\\Jobs\\processUploadedThumbs', $request);
     }
     $source->update($request->All());
     return Redirect::Route('admin.sources.index')->withMessage('Success!');
 }
 /**
  * Remove the specified resource from storage.
  *
  * @param  int  $id
  * @return Response
  */
 public function destroy($id)
 {
     //
     $source = Source::findOrFail($id);
     $source->delete();
     return \Redirect::route('manage.sources.index')->with('warning', 'The source has been deleted!');
 }