/** * Display a listing of the resource. * * @return Response */ public function getFinanciamientos(Request $request) { return Financiamiento::orderBy('nombre')->get()->toJson(); }