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

ActiveLibrary[Framework](/categories/framework)

m2s/laravel-nuxt
================

NuxtJS framework integration for Laravel

1.2.0(5y ago)1910.4k10[3 issues](https://github.com/m2sd/laravel-nuxt/issues)[8 PRs](https://github.com/m2sd/laravel-nuxt/pulls)MITPHP

Since Mar 28Pushed 3y ago1 watchersCompare

[ Source](https://github.com/m2sd/laravel-nuxt)[ Packagist](https://packagist.org/packages/m2s/laravel-nuxt)[ RSS](/packages/m2s-laravel-nuxt/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependencies (7)Versions (21)Used By (0)

NuxtJS for Laravel
==================

[](#nuxtjs-for-laravel)

This package facilitates integrating an SPA built with NuxtJS into an existing Laravel project.

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

[](#installation)

```
composer require m2s/laravel-nuxt
```

After installation you can publish the config.

```
php artisan vendor:publish --provider="M2S\LaravelNuxt\LaravelNuxtServiceProvider"
```

Setup
-----

[](#setup)

The package provides a command for easy installation and integration of a nuxt project.

```
$ php artisan nuxt:install -h
Description:
  Create a new nuxt project or setup integration of an existing one

Usage:
  nuxt:install [options] [--] []

Arguments:
  source                 Root folder of the nuxt application [default: "resources/nuxt"]

Options:
  -y, --yarn             Use yarn package manager
  -t, --typescript       Use typescript runtime
  -c, --cache[=CACHE]    Optional caching endpoint (e.g. /api/cache)
  -p, --prefix[=PREFIX]  Prefix for the nuxt application (will use value from `config('nuxt.prefix')` if omitted)
      --no-export        Do not export env variable on build
  -h, --help             Display this help message
  -q, --quiet            Do not output any message
  -V, --version          Display this application version
      --ansi             Force ANSI output
      --no-ansi          Disable ANSI output
  -n, --no-interaction   Do not ask any interactive question
      --env[=ENV]        The environment the command should run under
  -v|vv|vvv, --verbose   Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
```

Automatic routing
-----------------

[](#automatic-routing)

By default the package automatically adds a route for nuxt pages.

`Nuxt::route('/{path?}')->where('path', '.*')->name('nuxt');`

This route is named `'nuxt'` and can be used with Laravels route helper.

```
route('nuxt');

// or

route('nuxt', ['path' => 'some/deep/path']);
```

You can disable/enable automatic routing with the `'routing'` setting in `config/nuxt.php`.

Manual Routing
--------------

[](#manual-routing)

The package provides a simple facade which might be used to register nuxt routes.
Routes will automatically be prefixed with the configured path and a controller will be attached which handles internal redirection to nuxt.
The method returns a `Illuminate\Routing\Route` instance and may be used as normal.

In `routes/web.php`:

```
use M2S\LaravelNuxt\Facades\Nuxt;

Nuxt::route('example/route')->name('nuxt.example');
```

###  Health Score

35

—

LowBetter than 77% of packages

Maintenance17

Infrequent updates — may be unmaintained

Popularity32

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 97.1% 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 ~17 days

Recently: every ~41 days

Total

11

Last Release

2110d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/df94f77e8c44673a6a472f5c0a790aeeb82cb3ee3d8d1537cb73212def260175?d=identicon)[m2s](/maintainers/m2s)

---

Top Contributors

[![mentAl-maZe](https://avatars.githubusercontent.com/u/8998404?v=4)](https://github.com/mentAl-maZe "mentAl-maZe (34 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")

---

Tags

laraveltypescriptpwaSPAnuxtnuxtjs

###  Code Quality

Code StylePHP CS Fixer

### Embed Badge

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

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

###  Alternatives

[laravel/wayfinder

Generate TypeScript representations of your Laravel actions and routes.

1.7k7.0M116](/packages/laravel-wayfinder)[laravel/ai

The official AI SDK for Laravel.

9782.1M161](/packages/laravel-ai)[unopim/unopim

UnoPim Laravel PIM

10.3k2.2k](/packages/unopim-unopim)[cretueusebiu/laravel-nuxt

A Laravel-Nuxt starter project template.

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

API Platform support for Laravel

59156.3k11](/packages/api-platform-laravel)[ecotone/laravel

Ecotone for Laravel — CQRS, Event Sourcing, Sagas, Durable Workflows, and Outbox on top of Laravel Queue, via PHP attributes.

21313.7k3](/packages/ecotone-laravel)

PHPackages © 2026

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