/** * Display a listing of the resource. * * @return Response */ public function index() { return json_encode(Noticias::select("*", DB::raw("SUBSTRING(contenido,1,50) as 'cont'"))->orderby("updated_at", "desc")->take(50)->get()); }