Files
supabase/apps/docs/data
Jeremy Schoemaker 4557c40bd1 docs: match the Laravel quickstart to the current project skeleton (#53796)
## Problem

The Laravel quickstart has drifted from what `composer create-project
laravel/laravel` generates today. Closes #53795.

- Steps 2 and 4 link to the Laravel `12.x` docs. Laravel 13 is current.
- Step 6 shows `'sslmode' => 'require'` hardcoded, but the generated
`config/database.php` has read `sslmode` from `DB_SSLMODE` since
[laravel/laravel#6727](https://github.com/laravel/laravel/pull/6727).
- Step 5 says Laravel takes `sslmode` as a config option "rather than a
URL parameter". A `?sslmode=` query on `DB_URL` works and overrides the
config value.
- The Laravel "Copy prompt" text never sets `sslmode`.

## Solution

- Link to the unversioned Laravel docs so the links follow the current
release.
- Set `DB_SSLMODE=require` in the step 5 `.env` block and show the
generated `sslmode` line unchanged in step 6. Step 6 is now a one-line
`search_path` edit.
- Remove the inaccurate sentence, and the paragraph that repeated the
`prefer` and `require` guidance already given by the
`quickstart_connection_string.mdx` partial.
- Add `DB_SSLMODE=require` to the Laravel AI prompt.

Tested on a fresh Laravel 13.43 app (PHP 8.5, Breeze 2.4.2) against
Postgres 18 with SSL on: with the revised steps, `php artisan migrate`
created all tables in the `laravel` schema, `pg_stat_ssl` showed the
connection encrypted, and register and sign in worked. I tested against
a local Postgres, not through the Supabase pooler. `prettier --check`
passes on both files. I did not run the full docs build locally.

## Review instructions

1. Open the Laravel quickstart in the docs preview.
2. Check that the two Laravel docs links in steps 2 and 4 open the
installation and authentication pages.
3. Run `composer create-project laravel/laravel example-app` and compare
the `pgsql` block in `config/database.php` with step 6. Only
`search_path` differs.
4. Click the AI prompt button and check that step 3 mentions
`DB_SSLMODE=require`.

## Checklist

Check all before review:

- [x] I have read
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
- [ ] If I wrote a new docs topic or edited an existing topic, I used
the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs
[style
guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide)

Checked against the style guide (voice, `WORD_LIST.md`, timeless
documentation).
2026-11-22 22:27:28 +00:00
..