PHPackages                             kamalsroor/laravel-nuxt - 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. kamalsroor/laravel-nuxt

ActiveLibrary[Framework](/categories/framework)

kamalsroor/laravel-nuxt
=======================

Build a SPA with Laravel and Nuxt

v2.0.1(4y ago)05MITPHPPHP &gt;=7.0.0

Since Feb 7Pushed 4y agoCompare

[ Source](https://github.com/Kamalsroor/laravel-nuxt)[ Packagist](https://packagist.org/packages/kamalsroor/laravel-nuxt)[ Docs](https://github.com/skyrpex/laravel-nuxt)[ RSS](/packages/kamalsroor-laravel-nuxt/feed)WikiDiscussions v1 Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (16)Used By (0)

Warning: this project has been deprecated
=========================================

[](#warning-this-project-has-been-deprecated)

`laravel-nuxt` was created to offer some sugar when working locally with Laravel+Nuxt, solving some cookie problems in the process. Today, it isn't necessary anymore.

We recommend using [Laravel Sanctum](https://laravel.com/docs/8.x/sanctum), which plays nicely with SPAs (see [Sanctum's SPA Authentication section](https://laravel.com/docs/8.x/sanctum#spa-authentication)). If you can't migrate, just keep using `laravel-nuxt`.

Laravel Nuxt
============

[](#laravel-nuxt)

This package allows you to build a SPA with Laravel and Nuxt.

Installation
------------

[](#installation)

```
composer require kamalsroor/laravel-nuxt
```

In Laravel 5.5 the service provider will automatically get registered. In older versions of the framework just add the service provider in `config/app.php` file:

```
return [
  // ...
  'providers' => [
      // ...
      Kamalsroor\LaravelNuxt\LaravelNuxtServiceProvider::class,
  ],
];
```

You need to add a fallback route that will render the SPA page in `routes/web.php` file:

```
// ...
// Add this route the last, so it doesn't interfere with your other routes.
Route::get(
    '{uri}',
    '\\'.Kamalsroor\LaravelNuxt\Controllers\NuxtController::class
)->where('uri', '.*');
```

Finally, you must install the [laravel-nuxt](https://github.com/skyrpex/laravel-nuxt-js) npm package. After following the instructions, run `npm run build` and try your SPA!

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 58.8% 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.

###  Release Activity

Cadence

Every ~117 days

Recently: every ~146 days

Total

14

Last Release

1487d ago

Major Versions

1.5.0 → 2.x-dev2022-04-17

v1.x-dev → v2.0.12022-04-17

### Community

Maintainers

![](https://www.gravatar.com/avatar/81d04b4ae6ae4722e82dce4a1de424ca4c147c247cf2df0cb8ad2f9757d6126e?d=identicon)[kamalsroor](/maintainers/kamalsroor)

---

Top Contributors

[![skyrpex](https://avatars.githubusercontent.com/u/1077520?v=4)](https://github.com/skyrpex "skyrpex (10 commits)")[![kamalsroor1](https://avatars.githubusercontent.com/u/157611649?v=4)](https://github.com/kamalsroor1 "kamalsroor1 (5 commits)")[![GautierDele](https://avatars.githubusercontent.com/u/12382966?v=4)](https://github.com/GautierDele "GautierDele (2 commits)")

---

Tags

laravelvueSPAnuxt

### Embed Badge

![Health badge](/badges/kamalsroor-laravel-nuxt/health.svg)

```
[![Health](https://phpackages.com/badges/kamalsroor-laravel-nuxt/health.svg)](https://phpackages.com/packages/kamalsroor-laravel-nuxt)
```

###  Alternatives

[cretueusebiu/laravel-nuxt

A Laravel-Nuxt starter project template.

1.1k6.3k](/packages/cretueusebiu-laravel-nuxt)[kompo/kompo

Laravel &amp; Vue.js FullStack Components for Rapid Application Development

11812.4k21](/packages/kompo-kompo)

PHPackages © 2026

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