Overview
The Laravel Nuxt project, which was created to assist with local development using Laravel and Nuxt, has been deprecated. It recommended using Laravel Sanctum instead, as it is better suited for working with SPAs. However, for those unable to migrate, the Laravel Nuxt package can still be used.
Features
- Offers an easy way to build a SPA using Laravel and Nuxt
- Provides a development script for starting both Nuxt and Laravel artisan servers
- Includes a production command to compile the application for deployment
- Offers the ability to optimize bundles using webpack-bundle-analyzer
Installation
To install the Laravel Nuxt PHP package, follow these steps:
- Install the laravel-nuxt PHP package first.
- Optionally, remove the default Laravel scaffolding.
- Add a script to your package.json.
- Wrap your nuxt.config.js’s export with laravelNuxt.
- Populate resources/nuxt/pages/index.vue inside your project.
- Run the necessary command.
- Go to http://localhost:8000 to access the application.
Summary
The Laravel Nuxt project has been deprecated and recommends using Laravel Sanctum instead. However, it is still possible to use Laravel Nuxt if needed. The project offers features such as easy SPA development with Laravel and Nuxt, a development script for server startup, a production command for compilation, and the ability to optimize bundles. The installation process involves installing the laravel-nuxt PHP package and following a series of steps to set up the project.