Overview
Laravel Breeze - Nuxt3 Edition is an implementation of the Laravel Breeze authentication starter kit frontend in Nuxt3. It allows developers to quickly pair their Nuxt3 frontend with a Laravel backend by providing all the necessary authentication boilerplate, powered by Laravel Sanctum.
Features
- Implementation of Laravel Breeze application/authentication starter kit frontend in Nuxt3.
- Laravel Sanctum integration for authentication.
- Quick and easy pairing of Nuxt3 frontend with Laravel backend.
Installation
To install Laravel Breeze - Nuxt3 Edition, follow these steps:
- Install Laravel Breeze into a fresh Laravel application and install Breeze’s API scaffolding.
- Set the
APP_URLandFRONTEND_URLenvironment variables in your application tohttp://localhost:8000andhttp://localhost:3000respectively. - Update the
HOMEconstant in yourRouteServiceProvider.phpfile to specify the page your users are redirected to during email verification. - 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 and frontend. - Run the application using
npm run dev. Access the application athttp://localhost:3000.
Note: It is recommended to use localhost during local development to avoid CORS “Same-Origin” issues. Alternatively, you can use the concurrently package to run both Nuxt and Laravel servers with a single command.
Summary
Laravel Breeze - Nuxt3 Edition is a convenient implementation of the Laravel Breeze application/authentication starter kit frontend in Nuxt3. It simplifies the process of pairing a Nuxt3 frontend with a Laravel backend by providing all the authentication boilerplate. The integration with Laravel Sanctum ensures secure authentication functionality. With clear installation instructions and easy-to-use features like utilities and composables, Laravel Breeze - Nuxt3 Edition is a valuable tool for developers looking to build powerful web applications.