/**
  * Remove the specified resource from storage.
  *
  * @param  int  $id
  * @return Response
  */
 public function destroy($id)
 {
     $certificatesat = CertificateSats::findOrFail($id);
     $certificatesat->delete();
     Session::flash('message', $certificatesat->name . ' was deleted !');
     return \Redirect::route('settings.certificatesats.index');
 }
 public static function filterAndPaginate($name)
 {
     return CertificateSats::name($name)->orderBy('name', 'ASC')->paginate();
 }