Skip to content
Boberbot

PHP and Laravel check

Is your PHP or Laravel site ready for AI agents?

Paste your PHP and Laravel address. Boberbot runs Cloudflare's 22 agent-readiness checks and shows how to fix each one on PHP and Laravel.

Nothing is stored.

Nom nom. Back in 5!

Boberbot, a beaver in a yellow hard hat and black workwear, on his break on a yellow cooler

PHP and Laravel and AI agents

Older PHP sites are often in better shape than they look: pages are server-rendered, and you control every file and header. A robots.txt, a Link header in .htaccess and a small Markdown response cover most of Cloudflare's checks.

On Laravel, spatie/laravel-markdown-response answers agents with Markdown, and spatie/laravel-sitemap keeps the sitemap current.

Facts checked on 8 October 2026. Platforms change: run the check above for your site's current state.

What you control on PHP and Laravel

SettingYou can change it
robots.txtYes
SitemapYes
Response headersYes
Markdown for agentsYes
llms.txtYes

Out of the box

  • Server-rendered HTML.
  • Full control over files, headers and responses.
  • Nothing agent-specific out of the box.

Fix it on PHP and Laravel

The seven checks a content site needs, and how each one is done on PHP and Laravel.

  1. robots.txtFixable

    Edit public/robots.txt: User-agent: *, your rules and a Sitemap line.

    Cloudflare's guide to robots.txt
  2. SitemapFixable

    Generate sitemap.xml with spatie/laravel-sitemap on a schedule.

    Cloudflare's guide to Sitemap
  3. Link headersFixable

    Add a middleware that sets a Link header on HTML responses, or add it in the web server config.

    Cloudflare's guide to Link headers
  4. DNS-AIDFixable

    Add the DNS-AID records in your DNS provider and turn on DNSSEC there. This is DNS work, not a platform setting.

    Cloudflare's guide to DNS-AID
  5. Markdown negotiationFixable

    spatie/laravel-markdown-response answers Accept: text/markdown with Markdown.

    Cloudflare's guide to Markdown negotiation
  6. AI bot rulesFixable

    Keep User-agent: * in public/robots.txt, or add AI crawler groups.

    Cloudflare's guide to AI bot rules
  7. Content SignalsFixable

    Add Content-Signal: search=yes, ai-input=yes, ai-train=no to public/robots.txt.

    Cloudflare's guide to Content Signals

PHP and Laravel questions

In .htaccess: Header add Link "; rel=\"describedby\"". With nginx, use add_header Link.

spatie/laravel-markdown-response returns a Markdown version when the request accepts text/markdown.