PHPackages                             axyr/laravel-react-starter-kit - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Framework](/categories/framework)
4. /
5. axyr/laravel-react-starter-kit

ActiveProject[Framework](/categories/framework)

axyr/laravel-react-starter-kit
==============================

Laravel React Starter Kit without Inertia.

7551Blade

Since Jul 21Pushed 1y agoCompare

[ Source](https://github.com/axyr/laravel-react-starter-kit)[ Packagist](https://packagist.org/packages/axyr/laravel-react-starter-kit)[ RSS](/packages/axyr-laravel-react-starter-kit/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel React Starter Kit (Fortify &amp; Sanctum)
=================================================

[](#laravel-react-starter-kit-fortify--sanctum)

A Laravel starter kit with a standalone React + [ShadCN UI](https://ui.shadcn.com) frontend.

This kit uses a similar frontend as the new Laravel React Kit, but **without Inertia**. It’s designed for projects where the frontend and backend are fully decoupled.

The frontend can also be used standalone.

See the React frontend repository:

[![Screenshot](./docs/screenshot.png)](./docs/screenshot.png)

---

⚡️ Why use this kit?
--------------------

[](#️-why-use-this-kit)

Laravel Sanctum and Fortify make authentication with a separate frontend possible - but not always simple. You need to configure CORS, session domains, and cross-origin cookies correctly.

This starter kit handles that setup for you. It works out of the box, so you can focus on building your app - not fixing config issues.

---

🔧 Installation
--------------

[](#-installation)

```
laravel new --using=axyr/laravel-react-starter-kit my-project
cd my-project
php artisan migrate
composer run dev
```

> The React frontend will be installed in the ~/frontend directory.

This separation is intentional to highlight the decoupled architecture. You can build and deploy the frontend and backend independently - for example, deploy the frontend as a static site to S3 and the backend as an API.

> You can change the installation directory of the frontend in the FrontendInstall command.

---

🔌 Why not Inertia?
------------------

[](#-why-not-inertia)

Inertia.js is a great tool for backend developers who want to build dynamic frontends using React or Vue, without fully adopting a traditional SPA architecture. It removes the need to duplicate routes between the frontend and backend and provides server-side rendering out of the box.

However, Inertia tightly couples the frontend to the Laravel backend. In some cases, this is not desirable—especially when:

- You work in larger teams with dedicated frontend developers who don't want to—or can't—work within a Laravel backend environment.
- The frontend is developed, deployed, and hosted independently from the backend.
- You prefer the flexibility and separation of concerns offered by a fully decoupled architecture.

In these scenarios, Inertia is not the right fit.

Ultimately, it comes down to preference and project structure. Personally, I’ve grown to prefer frontends that communicate with the backend exclusively through REST/JSON APIs. This approach gives more flexibility and clearer boundaries between frontend and backend responsibilities.

If that sounds like your workflow too, this starter kit is made for you.

---

🔍 Inertia vs. Decoupled SPA: Key Differences
--------------------------------------------

[](#-inertia-vs-decoupled-spa-key-differences)

Feature / Concern**Inertia.js****Decoupled SPA** (this Starter Kit)**Architecture**Tightly coupledFully separated frontend &amp; backend**Routing**Laravel handles routingReact handles routing**Deployment**Frontend bundled with LaravelFrontend and backend deployed independently**Best for**Full-stack Laravel teamsTeams with separate backend/frontend responsibilities**API Communication**Implicit via Laravel controllersExplicit REST/JSON APIs**Frontend Hosting**Served via LaravelCan be hosted on S3, Vercel, Netlify, etc.**Frontend Flexibility**Bound to Laravel blade/inertia lifecycle100% JavaScript stack freedom**SSR (Server-Side Rendering)**IncludedOptional (e.g., via Next.js if needed)**Learning Curve**Lower for Laravel devs, no API boilerplate neededRequires clear API design and frontend skills---

✅ Features
----------

[](#-features)

- ✅ Fully decoupled React + ShadCN UI frontend
- ✅ Laravel Fortify + Sanctum authentication
- ✅ Pure REST/JSON-based communication
- ✅ No Inertia or Blade required
- ✅ Suitable for multi-domain deployments

⚙️ Preconfigured .env Settings
------------------------------

[](#️-preconfigured-env-settings)

The following settings are preconfigured to support cross-origin auth:

```
APP_URL=http://localhost:8000
APP_FRONTEND_URL=http://localhost:5173
SANCTUM_STATEFUL_DOMAINS=localhost
SESSION_SAME_SITE=lax
SESSION_DOMAIN=localhost
```

###  Health Score

19

—

LowBetter than 9% of packages

Maintenance35

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity15

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/345155?v=4)[Martijn van Nieuwenhoven](/maintainers/axyr)[@axyr](https://github.com/axyr)

---

Top Contributors

[![axyr](https://avatars.githubusercontent.com/u/345155?v=4)](https://github.com/axyr "axyr (19 commits)")

### Embed Badge

![Health badge](/badges/axyr-laravel-react-starter-kit/health.svg)

```
[![Health](https://phpackages.com/badges/axyr-laravel-react-starter-kit/health.svg)](https://phpackages.com/packages/axyr-laravel-react-starter-kit)
```

###  Alternatives

[nineinchnick/edatatables

Grid widget for the Yii Framework, wrapper for the DataTables jQuery plugin

173.2k](/packages/nineinchnick-edatatables)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
