/** * Display a listing of the resource. * * @return Response */ public function index() { try { return Cargos::orderBy('nombre')->get(); } catch (Exception $exc) { echo $exc->getTraceAsString(); } }