maarsson / laravel-nuxtjs-router
Laravel route service provider for NuxtJS frontend
Package info
github.com/maarsson/laravel-nuxtjs-router
Type:package
pkg:composer/maarsson/laravel-nuxtjs-router
1.0.6
2025-02-27 11:12 UTC
Requires
- php: ^8.1
- laravel/framework: >=9.0
This package is auto-updated.
Last update: 2026-02-27 13:22:20 UTC
README
This package adds a fallback routing to your Laravel-NuxtJS project.
Usage
- Add package to your Laravel project:
composer require maarsson/laravel-nuxtjs-router - Set up frontend generate folder path in your NuxtJS config in order to build the generated files under Laravels
publicfolder. In yournuxt.config.js:
You may change the relative path in the example above, according to your NuxtJS placement in your project.generate: { dir: '../public/_nuxt' }, - Generate NuxtJs frontend.
- Open your project in the browser.
License
This package is open-sourced software licensed under the MIT license.