Skip to content

Route [nuxt] not defined. #18

@riyaz7us

Description

@riyaz7us

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions