Web Development · WDC-109

AI Search Optimization with Astro and Laravel

AI Search Optimization with Astro and Laravel is a hands-on course in building websites that AI search tools such as ChatGPT and Gemini can understand and cite, using Astro static generation, a Laravel API, JSON-LD, sitemaps and llms.txt. It suits PHP and Laravel developers and tech leads, and you leave able to deploy a production site on Apache or Nginx.

Updated
From 5,850 THB / person 6,500 −10% excl. VAT 7% · group rates available
PDFDownload the course outline
  • Duration12 hours · 2 days
  • FormatOnsite / live online
  • Next round24–25 Nov 26
  • CertificateIncluded

Course overview

Many people now look for information by asking ChatGPT, Perplexity, Claude or Gemini, or by reading Google AI Overviews, instead of clicking traditional search results. Websites that AI can read easily and choose to cite have the advantage. This is the approach of GEO (Generative Engine Optimization) and AEO (Answer Engine Optimization), which has to be done in the website's code, not only in its marketing copy.

This course is designed for developers. Learners build a real corporate website with Astro 6 static site generation, which produces complete HTML at build time, pulling data from a Laravel 13 API secured with Sanctum and a MySQL or MariaDB database. They then add every layer of GEO, including metadata, canonical tags, hreflang, JSON-LD, FAQPage, E-E-A-T, sitemaps, robots.txt and llms.txt, deploy on Apache or Nginx with automatic rebuilds, and measure whether AI crawlers are really collecting the site. (2 days, 6 hours per day, 12 hours in total, Intermediate level.)

What you’ll gain

  • Explain how generative and answer engines work and what makes a website likely to be cited
  • Design an Astro 6 SSG architecture with a Laravel 13 API and MySQL/MariaDB, deployed on Apache/Nginx
  • Build a REST API with Laravel 13 and Sanctum, with a database designed for answer-ready content
  • Create JSON-LD for every schema a corporate site needs, and validate it with standard tools
  • Handle metadata, canonical tags, hreflang, headings, robots.txt, sitemaps and llms.txt correctly
  • Deploy on Apache/Nginx with automatic rebuilds when database content changes
  • Track AI crawler visits and measure citations systematically

Who this course is for

  • Web developers who want their websites to be found and cited by AI search
  • Full stack and backend developers in PHP and Laravel who want an Astro SSG frontend
  • Tech leads and website owners planning to rebuild a site for the AI search era
  • Technical SEO specialists who can code and want to implement GEO themselves

Prerequisites

  • Able to program in PHP, with basic Laravel experience such as routes, controllers, models and migrations
  • A basic understanding of HTML, CSS and JavaScript
  • Experience with MySQL or MariaDB, including basic SQL and table design
  • Basic Git and command-line skills; no prior Astro or SEO experience needed
  • A laptop that can run PHP 8.3 or later, Composer, Node.js 22 or later and Docker

Curriculum

Course Details

This course is the 2026 edition of Rank Your Website on AI Search with Astro & Laravel 13 & MySQL/MariaDB. It has been updated for Astro 6 with the Content Layer API and for Laravel 13, and adds performance, IndexNow and AI crawler policies. It runs for 2 days, 6 hours per day (12 hours in total, 09:00-16:00), as lectures with labs on a single workshop website built from the database through to deployment. Intermediate level. Learners take home the source code for every lab and a GEO-ready checklist for their own projects.

Day 1 Full Stack Foundation and GEO Core

Section 1: From SEO to GEO and AEO

  • How AI search such as ChatGPT, Perplexity, Claude, Gemini and AI Overviews changes search
  • How GEO, AEO and SEO differ, and what they still share
  • How AI crawlers read websites, and how robots.txt affects citation
  • Case study: a real website audit and the roadmap used as the course brief

Section 2: An Architecture That AI Can Find

  • Why SSG suits GEO: complete HTML without running JavaScript
  • How Astro 6 SSG, a Laravel 13 API and MySQL/MariaDB work together
  • Use Node.js only on the build machine and deploy static files to Apache/Nginx
  • SSG, SSR and SPA compared from the view of AI crawlers and performance

Section 3: Lab: A Laravel 13 API

  • Design services, articles, team_members and faqs tables with published_at and updated_at
  • Create migrations, models, seeders and table relationships
  • Return data with API Resources in a shape that Astro uses easily
  • Install Sanctum with install:api and issue a token for the build step

Section 4: Lab: Astro 6 for SSG

  • Astro project structure, layouts, components and the islands concept
  • Fetch data from the Laravel API at build time with a Content Layer loader
  • Build detail pages with dynamic routes and getStaticPaths
  • Lab: astro build produces HTML for every page, ready for the server

Section 5: Lab: Metadata, Canonical Tags and Headings

  • A SeoHead component that sets per-page titles and meta descriptions from real data
  • Open Graph for articles, with published and modified dates
  • Canonical tags with Astro.url, and hreflang for th, en and x-default
  • A heading hierarchy AI understands: one H1 and question-style H2s

Section 6: Lab: JSON-LD and an FAQ System

  • A central JsonLd component for assembling schemas one by one
  • Organization, WebSite, Service, Article, Person and BreadcrumbList
  • An faqs table in the Laravel API linked to FAQPage schema automatically
  • Validate with Schema Markup Validator and Rich Results Test before deploying
Day 2 E-E-A-T, llms.txt, Deployment and Measurement

Section 7: E-E-A-T That AI Can Verify

  • What E-E-A-T is and why it matters for being cited by AI
  • An author box linked to profile pages through Person schema
  • Machine-readable published and modified dates
  • About, contact and policy pages that build trust

Section 8: Answer-Ready Content

  • Answer the main question in the first two or three sentences
  • Question-style H2s, tables and bullets for comparisons
  • Cite sources and figures that can be verified
  • Hand guidelines to the content team so they work with developers

Section 9: Lab: Sitemaps, robots.txt and llms.txt

  • Generate sitemap.xml at build time with real lastmod values from the database
  • Use a sitemap index when the number of URLs exceeds the limit
  • Separate robots.txt policies for search crawlers and model-training crawlers
  • Generate llms.txt from real data, following the llmstxt.org proposal

Section 10: Performance for GEO

  • Zero JavaScript by default keeps HTML light and fast
  • Optimise images with astro:assets to WebP or AVIF at their real size
  • Enable gzip or brotli and set cache headers
  • Measure Core Web Vitals with PageSpeed Insights

Section 11: Lab: Deploying on Apache/Nginx

  • Place static files, the Laravel API and the database on one server or separately
  • Correct virtual hosts, HTTPS and redirects
  • Rebuild automatically with a webhook and a queue when content changes
  • Notify search engines of updated URLs with IndexNow

Section 12: Workshop: Measurement and the GEO-Ready Checklist

  • Set up Google Search Console and Bing Webmaster Tools
  • Read server logs for the user agents of each AI crawler
  • A monthly test plan that asks AI search target questions and records the results
  • Check the workshop site against every item on the GEO-ready checklist

Schedule & training options

For individuals — public rounds

24–25November
Classroom24–25 Nov 26
20 seats left
26–27January
Classroom26–27 Jan 27
20 seats left
11–12March
Classroom11–12 Mar 27
20 seats left
18–19May
Classroom18–19 May 27
20 seats left
8–9June
Classroom8–9 Jun 27
20 seats left
24–25August
Classroom24–25 Aug 27
20 seats left
11–12October
Classroom11–12 Oct 27
20 seats left
21–22December
Classroom21–22 Dec 27
20 seats left

For organisations — in-house / private

  • Tailor the content to your team’s tools and projects
  • Your dates, at your office or live online
  • Quotation with tax ID for procurement
Corporate training quote

Instructors

Frequently asked questions

How is GEO different from SEO?

SEO aims to rank pages in search results so people click through, while GEO, Generative Engine Optimization, aims to have AI such as ChatGPT Search, Perplexity, Claude, Gemini and Google AI Overviews choose your content to cite in their answers. The foundations are shared, such as well-structured HTML, sitemaps and site speed, but GEO focuses on content that answers questions directly, clear sources, credible authors and structured data machines understand. No method guarantees that AI will cite your site.

How do I add FAQPage JSON-LD to a web page?

Add a script tag with type application/ld+json, containing an object with @context set to https://schema.org and @type set to FAQPage. Set mainEntity to an array of Question items, each with name as the question and acceptedAnswer as an Answer whose text is the answer. The content must match the questions and answers visible on the page. In Astro, a common approach is a shared component that takes FAQ data from the API and generates the JSON-LD automatically, validated with Schema Markup Validator or Rich Results Test.

What is llms.txt, and how does it help a website in the AI search era?

llms.txt is a Markdown text file placed at the root of a website. It is a proposed standard from llmstxt.org that helps AI grasp a site quickly, with a short description of what the site is about and links to its key pages. It is not yet an official standard and not every AI provider reads it, so use it alongside robots.txt, which sets permissions for AI crawlers, and a sitemap that lists every page. It is best generated automatically from real data at build time so it never goes stale.

Who is the AI Search Optimization with Astro and Laravel course for, and what should I know beforehand?

It suits web developers, full stack and backend developers in PHP and Laravel, tech leads and website owners planning a rebuild, and technical SEO specialists who can code. You should write PHP and have basic Laravel experience, understand HTML, CSS and JavaScript, have used MySQL or MariaDB, and be comfortable with Git and the command line. No prior Astro or SEO experience is needed.

What will I be able to do after the AI Search Optimization with Astro and Laravel course?

You will be able to design an Astro 6 SSG architecture with a Laravel 13 API secured by Sanctum and MySQL/MariaDB, create JSON-LD for Organization, Article, Person, BreadcrumbList and FAQPage, handle metadata, canonical tags, hreflang, robots.txt, sitemaps and llms.txt, tune performance, deploy on Apache or Nginx with automatic rebuilds and track AI crawlers. Participants who complete the training receive a Certificate of Completion with its own number, which can be verified online.

Can the AI Search Optimization with Astro and Laravel course be run in-house for our team?

Yes. It can be run in-house for your team, with examples adapted to your work, such as using the same content structure and type of business as the website your team looks after. You can request a quotation from this page, or contact us on LINE @itgenius or by phone on 02-570-8449.

Related articles

Articles are published in Thai.