Overview
Laravel Breeze - Nuxt.js Edition is an implementation of the Laravel Breeze application/authentication starter kit frontend in Nuxt.js. It provides all the authentication boilerplate code, powered by Laravel Sanctum, allowing users to easily pair their Nuxt.js frontend with a Laravel backend.
Features
- Laravel Breeze implementation in Nuxt.js
- Authentication boilerplate code provided
- Powered by Laravel Sanctum for secure authentication
Installation
To install Laravel Breeze - Nuxt.js Edition, follow these steps:
- Create a Nuxt.js compatible Laravel backend by installing Laravel Breeze into a fresh Laravel application and installing Breeze’s API scaffolding.
- Set the
APP_URLandFRONTEND_URLenvironment variables in your application tohttp://localhost:8000andhttp://localhost:3000respectively. - Serve the Laravel application using the
serveArtisan command. - Clone the repository and install its dependencies using
yarn installornpm install. - Copy the
.env.examplefile to.envand provide the URL of your backend. - Run the application using
npm run devoryarn dev. The application will be available athttp://localhost:3000.
Note: It is recommended to use localhost during local development of both the backend and frontend to avoid “Same-Origin” issues with CORS.
Summary
Laravel Breeze - Nuxt.js Edition is a convenient implementation of the Laravel Breeze starter kit frontend in Nuxt.js. It provides all the necessary authentication boilerplate code and integrates seamlessly with a Laravel backend powered by Laravel Sanctum.