matches.blade.php 604 Bytes
<?php echo '<?xml version="1.0" encoding="UTF-8"?>'; ?>

<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
    @foreach ($matches as $match)
        <url>
            <loc>
                {{
                    route('matchReview', [
                        'id' => $match->matchId,
                        'slug' => FootyRoom\Http\Match\MatchSlug::fromTeams(
                            $match->homeTeam->name,
                            $match->awayTeam->name
                        ),
                    ])
                }}
            </loc>
        </url>
    @endforeach
</urlset>