Example #1
0
 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index()
 {
     try {
         return Cargos::orderBy('nombre')->get();
     } catch (Exception $exc) {
         echo $exc->getTraceAsString();
     }
 }
 /**
  * Remove the specified resource from storage.
  *
  * @param  int  $id
  * @return Response
  */
 public function destroy($id)
 {
     //
     Cargoss::destroy($id);
     return \Redirect::route('cargos.index');
 }