-
app/Http/Controllers/CalendarController.php
Open in GitHubuse App\Models\Stream; class CalendarController extends Controller { public function __invoke(Request $request): Response { // Stream::query() ->notOlderThanAYear() ->each(fn(Stream $stream) => $calendar->event( $stream->toCalendarItem() )); // } }