title = Setting::get('app_name'); $feed->description = trans('cachet.feed'); $feed->link = Setting::get('app_domain'); $feed->setDateFormat('datetime'); Incident::all()->map(function ($incident) use ($feed) { if ($incident->component) { $componentName = $incident->component->name; } else { $componentName = null; } $feed->add( $incident->name, Setting::get('app_name'), Setting::get('app_domain'), $incident->created_at, ($componentName === null ? $incident->humanStatus : $componentName.' '.$incident->humanStatus), $incident->message ); }); return $feed->render('rss'); } }