You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README-template.md
+36-7
Original file line number
Diff line number
Diff line change
@@ -17,12 +17,12 @@ Looking for the old CLI extension? [nuxt-laravel](https://github.com/m2sd/nuxt-l
17
17
This module makes it easy to integrate a [NuxtJS](https://nuxtjs.org) SPA into a [Laravel](https://laravel.com) application.
18
18
The implementation is based on [laravel-nuxt-js](https://github.com/skyrpex/laravel-nuxt-js) by [skyrpex](https://github.com/skyrpex).
19
19
20
-
> **Hint:** Use his composer exension[laravel-nuxt](https://github.com/skyrpex/laravel-nuxt) if you want to forward multiple specific routes to nuxt.
20
+
> **Hint:** Use his composer extension[laravel-nuxt](https://github.com/skyrpex/laravel-nuxt) if you want to forward multiple specific routes to nuxt.
21
21
22
22
## Features
23
23
24
-
*Easyly deploy an existing Nuxt app inside a Laravel application or vice versa
25
-
* Test your Nuxt app with live reloading, HMR and the autoconfigured Laravel test server
24
+
*Easily deploy an existing Nuxt app inside a Laravel application or vice versa
25
+
* Test your Nuxt app with live reloading, HMR and the auto-configured Laravel test server
26
26
* Seamlessly integrate Nuxt into the URL resolution of Laravel
27
27
* Share cookies and session state between frontend (Nuxt) and backend (Laravel) without the need for an API token
28
28
@@ -38,6 +38,12 @@ Install this package and its peer dependencies.
Simply include `nuxt-laravel` in `modules` and set the `mode` setting to `'spa'` in your `nuxt.config.js`
@@ -77,20 +83,43 @@ export default {
77
83
|`publicDir`|`string`| The folder where laravel serves assets from (is resolved relative to `root`) |`'public'`|
78
84
|`outputPath`|`string`| File location to which an additional index route will be rendered, useful if you want to store it in a folder outside of Laravels public dir (is resolved relative to `root`) |`null`|
79
85
|`server`|`boolean` or `object`| Settings for the Laravel testserver |*(see below)*|
86
+
|`swCache`|`boolean` or `object`| Settings for a cache endpoint workbox extensions using `@nuxtjs/pwa`|*(see below)*|
80
87
|`dotEnvExport`|`boolean`| Whether the `NUXT_OUTPUT_PATH` varibale should be written to the `.env` file in the laravel root directory |`false`|
81
88
82
-
The module loads the `.env` file from yout laravel root, so you can set the `NUXT_OUTPUT_PATH` environment variable from there.
89
+
The module loads the `.env` file from your laravel root, so you can set the `NUXT_OUTPUT_PATH` environment variable from there.
83
90
84
91
#### The `server` setting
85
92
86
93
If this setting is set to `false` the module will be disabled for development.
87
-
Setting this to `true` is equivalient to omitting it and will simply use the default configuration.
94
+
Setting this to `true` is equivalent to omitting it and will simply use the default configuration.
Copy file name to clipboardexpand all lines: README.md
+36-7
Original file line number
Diff line number
Diff line change
@@ -17,12 +17,12 @@ Looking for the old CLI extension? [nuxt-laravel](https://github.com/m2sd/nuxt-l
17
17
This module makes it easy to integrate a [NuxtJS](https://nuxtjs.org) SPA into a [Laravel](https://laravel.com) application.
18
18
The implementation is based on [laravel-nuxt-js](https://github.com/skyrpex/laravel-nuxt-js) by [skyrpex](https://github.com/skyrpex).
19
19
20
-
> **Hint:** Use his composer exension[laravel-nuxt](https://github.com/skyrpex/laravel-nuxt) if you want to forward multiple specific routes to nuxt.
20
+
> **Hint:** Use his composer extension[laravel-nuxt](https://github.com/skyrpex/laravel-nuxt) if you want to forward multiple specific routes to nuxt.
21
21
22
22
## Features
23
23
24
-
*Easyly deploy an existing Nuxt app inside a Laravel application or vice versa
25
-
* Test your Nuxt app with live reloading, HMR and the autoconfigured Laravel test server
24
+
*Easily deploy an existing Nuxt app inside a Laravel application or vice versa
25
+
* Test your Nuxt app with live reloading, HMR and the auto-configured Laravel test server
26
26
* Seamlessly integrate Nuxt into the URL resolution of Laravel
27
27
* Share cookies and session state between frontend (Nuxt) and backend (Laravel) without the need for an API token
28
28
@@ -38,6 +38,12 @@ Install this package and its peer dependencies.
Simply include `nuxt-laravel` in `modules` and set the `mode` setting to `'spa'` in your `nuxt.config.js`
@@ -77,20 +83,43 @@ export default {
77
83
|`publicDir`|`string`| The folder where laravel serves assets from (is resolved relative to `root`) |`'public'`|
78
84
|`outputPath`|`string`| File location to which an additional index route will be rendered, useful if you want to store it in a folder outside of Laravels public dir (is resolved relative to `root`) |`null`|
79
85
|`server`|`boolean` or `object`| Settings for the Laravel testserver |*(see below)*|
86
+
|`swCache`|`boolean` or `object`| Settings for a cache endpoint workbox extensions using `@nuxtjs/pwa`|*(see below)*|
80
87
|`dotEnvExport`|`boolean`| Whether the `NUXT_OUTPUT_PATH` varibale should be written to the `.env` file in the laravel root directory |`false`|
81
88
82
-
The module loads the `.env` file from yout laravel root, so you can set the `NUXT_OUTPUT_PATH` environment variable from there.
89
+
The module loads the `.env` file from your laravel root, so you can set the `NUXT_OUTPUT_PATH` environment variable from there.
83
90
84
91
#### The `server` setting
85
92
86
93
If this setting is set to `false` the module will be disabled for development.
87
-
Setting this to `true` is equivalient to omitting it and will simply use the default configuration.
94
+
Setting this to `true` is equivalent to omitting it and will simply use the default configuration.
0 commit comments