maarsson / laravel-nuxtjs-router
Laravel route service provider for NuxtJS frontend
Installs: 45
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:package
Requires
- php: ^8.1
- laravel/framework: ^9.0|^10.0
This package is auto-updated.
Last update: 2024-10-23 17:29:26 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
public
folder. 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.