<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/a-decoupled-laravel-next-js-starter-kit-with-fortify-sanctum-2fa-passkeys-one-command-v7wqezsnr" -->

---
title: A decoupled Laravel + Next.js starter kit with Fortify,...
description: A new open-source starter kit scaffolds a decoupled architecture with a headless Laravel API and a separate Next.js App Router SPA, connected via a same-origin...
canonical: https://daily.dev/posts/a-decoupled-laravel-next-js-starter-kit-with-fortify-sanctum-2fa-passkeys-one-command-v7wqezsnr
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: A decoupled Laravel + Next.js starter kit with Fortify, Sanctum, 2FA & passkeys — one command | daily.dev
og:description: A new open-source starter kit scaffolds a decoupled architecture with a headless Laravel API and a separate Next.js App Router SPA, connected via a same-origin...
og:url: https://daily.dev/posts/a-decoupled-laravel-next-js-starter-kit-with-fortify-sanctum-2fa-passkeys-one-command-v7wqezsnr
og:image: https://api.daily.dev/og/posts/v7wQezsnr.png
og:image:alt: A decoupled Laravel + Next.js starter kit with Fortify, Sanctum, 2FA & passkeys — one command
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# A decoupled Laravel + Next.js starter kit with Fortify, Sanctum, 2FA & passkeys — one command

**[Laravel Dev](https://daily.dev/sources/laraveldev)** · [@muhanz](https://daily.dev/muhanz) · 1 min read · 0 upvotes · 0 comments

## Summary

A new open-source starter kit scaffolds a decoupled architecture with a headless Laravel API and a separate Next.js App Router SPA, connected via a same-origin proxy that avoids CORS issues and skips Inertia entirely. It mirrors the official laravel/react-starter-kit UI and feature set, using next-sanctum for auth on the frontend. Login, registration, password reset, two-factor authentication, passkeys, settings, and dark mode all work out of the box, alongside Pest, Pint, ESLint/Prettier, and Playwright CI. Everything can be scaffolded with a single `laravel new` command referencing the package.

## Content

A headless Laravel API + a separate Next.js (App Router) SPA, wired together over a same-origin proxy — no CORS, no Inertia. It mirrors the official `laravel/react-starter-kit` UI and features but ships an independent SPA powered by `next-sanctum`. Login, registration, password reset, 2FA, passkeys, settings, and dark mode work out of the box, with Pest, Pint, ESLint/Prettier, and Playwright CI included. Scaffold in one command:

`laravel new my-app --using=aliziodev/laravel-next-starter-kit`

**Links:**

- GitHub: [https://github.com/aliziodev/laravel-next-starter-kit](https://github.com/aliziodev/laravel-next-starter-kit)
- Packagist: [https://packagist.org/packages/aliziodev/laravel-next-starter-kit](https://packagist.org/packages/aliziodev/laravel-next-starter-kit)

## Similar posts on daily.dev

- [Laravel Adds an Official Svelte \+ Inertia Starter Kit](https://daily.dev/posts/laravel-adds-an-official-svelte-inertia-starter-kit-runkxqods) · Laravel News · 79 upvotes · 6 comments
- [Laravel Introduces First-Party Passkey Authentication Support](https://daily.dev/posts/laravel-introduces-first-party-passkey-authentication-support-cztccowtr) · Laravel News · 18 upvotes · 2 comments

---

Tags: [#php](https://daily.dev/tags/php), [#authentication](https://daily.dev/tags/authentication), [#nextjs](https://daily.dev/tags/nextjs), [#laravel](https://daily.dev/tags/laravel), [#passkeys](https://daily.dev/tags/passkeys)

[View this post on daily.dev](https://daily.dev/posts/a-decoupled-laravel-next-js-starter-kit-with-fortify-sanctum-2fa-passkeys-one-command-v7wqezsnr)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"DiscussionForumPosting","mainEntityOfPage":"https://daily.dev/posts/a-decoupled-laravel-next-js-starter-kit-with-fortify-sanctum-2fa-passkeys-one-command-v7wqezsnr","headline":"A decoupled Laravel + Next.js starter kit with Fortify, Sanctum, 2FA \u0026 passkeys — one command","text":"A new open-source starter kit scaffolds a decoupled architecture with a headless Laravel API and a separate Next.js App Router SPA, connected via a same-origin proxy that avoids CORS issues and skips Inertia entirely. It mirrors the official laravel/react-starter-kit UI and feature set, using next-sanctum for auth on the frontend. Login, registration, password reset, two-factor authentication, passkeys, settings, and dark mode all work out of the box, alongside Pest, Pint, ESLint/Prettier, and Playwright CI. Everything can be scaffolded with a single `laravel new` command referencing the package.","url":"https://daily.dev/posts/a-decoupled-laravel-next-js-starter-kit-with-fortify-sanctum-2fa-passkeys-one-command-v7wqezsnr","datePublished":"2026-09-14T15:02:38.036Z","dateModified":"2026-09-14T15:02:54.564Z","author":{"@type":"Person","name":"Muhamad Hanafi","url":"https://daily.dev/muhanz","image":"https://lh3.googleusercontent.com/a/ACg8ocLSWpyFoPdnjldR4k8pT3D9nrqi7E79BhMOj5AO12TqFFLHO6lp=s96-c","interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"EndorseAction"},"userInteractionCount":90}},"image":"https://media.daily.dev/image/upload/s--QmUklm_i--/f_auto/v1782585532/posts/qTVAKONnr?_a=BAMAMicg0","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"isPartOf":{"@type":"WebPage","url":"https://daily.dev/squads/laraveldev","name":"Laravel Dev"}}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Laravel Dev","item":"https://daily.dev/squads/laraveldev"},{"@type":"ListItem","position":3,"name":"A decoupled Laravel + Next.js starter kit with Fortify, Sanctum, 2FA \u0026 passkeys — one command"}]}
```

