nuxt-laravel icon indicating copy to clipboard operation
nuxt-laravel copied to clipboard

Route [nuxt] not defined.

Open riyaz7us opened this issue 5 years ago • 0 comments

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!

riyaz7us avatar Sep 23 '20 19:09 riyaz7us