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

ActiveLibrary[Framework](/categories/framework)

klongchu/laravel-nuxt
=====================

NuxtJS framework integration for Laravel

1.0.2(2y ago)09MITPHP

Since Sep 24Pushed 2y agoCompare

[ Source](https://github.com/klongchu/laravel-nuxtjs)[ Packagist](https://packagist.org/packages/klongchu/laravel-nuxt)[ RSS](/packages/klongchu-laravel-nuxt/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (6)Versions (2)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

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor1

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

Unknown

Total

1

Last Release

967d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/6489801?v=4)[Klongchu Dev BUDHOSP](/maintainers/klongchu)[@klongchu](https://github.com/klongchu)

---

Top Contributors

[![mentAl-maZe](https://avatars.githubusercontent.com/u/8998404?v=4)](https://github.com/mentAl-maZe "mentAl-maZe (34 commits)")[![klongchu](https://avatars.githubusercontent.com/u/6489801?v=4)](https://github.com/klongchu "klongchu (5 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/klongchu-laravel-nuxt/health.svg)

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

###  Alternatives

[cretueusebiu/laravel-nuxt

A Laravel-Nuxt starter project template.

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

NuxtJS framework integration for Laravel

2010.3k](/packages/m2s-laravel-nuxt)[codewithdennis/larament

Larament is a time-saving starter kit to quickly launch Laravel 13.x projects. It includes FilamentPHP 5.x pre-installed and configured, along with additional tools and features to streamline your development workflow.

3691.5k](/packages/codewithdennis-larament)

PHPackages © 2026

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