{"id":25631654,"url":"https://github.com/m2sd/laravel-nuxt","last_synced_at":"2025-08-27T01:41:07.208Z","repository":{"id":47880600,"uuid":"250849009","full_name":"m2sd/laravel-nuxt","owner":"m2sd","description":"NuxtJS framework integration for Laravel","archived":false,"fork":false,"pushed_at":"2022-12-05T16:39:52.000Z","size":200,"stargazers_count":20,"open_issues_count":10,"forks_count":10,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-28T05:41:26.241Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/m2sd.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-03-28T17:02:23.000Z","updated_at":"2024-10-28T23:24:40.000Z","dependencies_parsed_at":"2023-01-24T06:00:36.212Z","dependency_job_id":null,"html_url":"https://github.com/m2sd/laravel-nuxt","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m2sd%2Flaravel-nuxt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m2sd%2Flaravel-nuxt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m2sd%2Flaravel-nuxt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m2sd%2Flaravel-nuxt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/m2sd","download_url":"https://codeload.github.com/m2sd/laravel-nuxt/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248670508,"owners_count":21142897,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-02-22T20:28:50.964Z","updated_at":"2025-04-14T17:07:15.127Z","avatar_url":"https://github.com/m2sd.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NuxtJS for Laravel\n\nThis package facilitates integrating an SPA built with NuxtJS into an existing Laravel project.\n\n## Installation\n\n```sh\ncomposer require m2s/laravel-nuxt\n```\n\nAfter installation you can publish the config.\n\n```sh\nphp artisan vendor:publish --provider=\"M2S\\LaravelNuxt\\LaravelNuxtServiceProvider\"\n```\n\n## Setup\n\nThe package provides a command for easy installation and integration of a nuxt project.\n\n```sh\n$ php artisan nuxt:install -h\nDescription:\n  Create a new nuxt project or setup integration of an existing one\n\nUsage:\n  nuxt:install [options] [--] [\u003csource\u003e]\n\nArguments:\n  source                 Root folder of the nuxt application [default: \"resources/nuxt\"]\n\nOptions:\n  -y, --yarn             Use yarn package manager\n  -t, --typescript       Use typescript runtime\n  -c, --cache[=CACHE]    Optional caching endpoint (e.g. /api/cache)\n  -p, --prefix[=PREFIX]  Prefix for the nuxt application (will use value from `config('nuxt.prefix')` if omitted)\n      --no-export        Do not export env variable on build\n  -h, --help             Display this help message\n  -q, --quiet            Do not output any message\n  -V, --version          Display this application version\n      --ansi             Force ANSI output\n      --no-ansi          Disable ANSI output\n  -n, --no-interaction   Do not ask any interactive question\n      --env[=ENV]        The environment the command should run under\n  -v|vv|vvv, --verbose   Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug\n```\n\n## Automatic routing\n\nBy default the package automatically adds a route for nuxt pages.\n\n`Nuxt::route('/{path?}')-\u003ewhere('path', '.*')-\u003ename('nuxt');`\n\nThis route is named `'nuxt'` and can be used with Laravels route helper.\n\n```php\nroute('nuxt');\n\n// or\n\nroute('nuxt', ['path' =\u003e 'some/deep/path']);\n```\n\nYou can disable/enable automatic routing with the `'routing'` setting in `config/nuxt.php`.\n\n## Manual Routing\n\nThe package provides a simple facade which might be used to register nuxt routes.  \nRoutes will automatically be prefixed with the configured path and a controller will be attached which handles internal redirection to nuxt.  \nThe method returns a `Illuminate\\Routing\\Route` instance and may be used as normal.\n\nIn `routes/web.php`:\n\n```php\n\nuse M2S\\LaravelNuxt\\Facades\\Nuxt;\n\nNuxt::route('example/route')-\u003ename('nuxt.example');\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fm2sd%2Flaravel-nuxt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fm2sd%2Flaravel-nuxt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fm2sd%2Flaravel-nuxt/lists"}