public function noticias() { $noticias = Noticia::with(['categoria', 'user'])->get(); return response()->json($noticias); }