nuxt-laravel
nuxt-laravel copied to clipboard
Route [nuxt] not defined.
I added nuxt-laravel package in my previous laravel and nuxt based application. By following the "Easy Method" procedure, I could successfully configure the complete application for both laravel and nuxt, build and generate spa into laravel's public directory. My config/nuxt.php is as follows:
<?php
return [
'routing' => true,
'prefix' => 'app',
'source' => env('NUXT_OUTPUT_PATH', public_path('spa.html')),
'ssr' => env('NUXT_SSR_PROXY', false),
];
I added route('nuxt'); to my routes/web.php file, which however returns Route [nuxt] not defined. exception when visiting the url. Is there anything wrong with my configuration? Thanks!