info() ->create([ 'ip' => $_SERVER['REMOTE_ADDR'], ]); $cv->update(['views' => $cv->views+=1]); return new CVResource($cv); } }