-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Laravel to Nuxt #6
Comments
Hi @bitfactory-sarah-tammenga, Let's clarify some things in advance: PHP is a server side scripting language and, in production, will need to be set up properly through a web server and a process manager (e.g. nginx + php-fpm) The module disables Laravel support if it is unable to find the
Once you have a laravel project setup you can direct this module to it's directory as follows: In export default {
// ...
modules: [
'nuxt-laravel'
// ...
],
// ...
laravel: {
// A relative path will be resolved relative to the current working directory (i.e. the directory you execute 'yarn dev' from
root: 'relative/path/to/laravel/project/directory'
// An absolute path (note the leading '/') will be used as is
root: '/absolute/path/to/laravel/project/directory'
}
} After the root is set the module should work correctly. |
Also: Alternatively (if you want to start fresh): |
Hi,
So I have a Nuxt.js project and I want to add Laravel.
I added
npm install --save-dev @nuxtjs/axios @nuxtjs/proxy nuxt-laravel
And I added 'nuxt-laravel' to modules as well, but I am not sure what the next steps are. When I do npm run dev I get a message that Laravel support is disabled.
The text was updated successfully, but these errors were encountered: