/** * Remove the specified solvencia from storage. * * @param int $id * @return Response */ public function destroy($id) { if (Auth::user()->residencia->id == Solvencia::find($id)->residencia_id) { Solvencia::destroy($id); return Response::json(['status' => 'TRUE'], 200); } else { return Response::json(['status' => 'ERROR'], 403); } }