Laravel Breeze - Nuxt.js Edition
This project was heavily inspired by the Breeze Next.js project. Have fun!
This repository is an implementation of the Laravel Breeze application / authentication starter kit frontend in Nuxt.js. All of the authentication boilerplate is already written for you - powered by Laravel Sanctum, allowing you to quickly begin pairing your beautiful Nuxt.js frontend with a powerful Laravel backend.
First, create a Nuxt.js compatible Laravel backend by installing Laravel Breeze into a fresh Laravel application and installing Breeze's API scaffolding:
# Create the Laravel application... laravel new nuxt-backend cd nuxt-backend # Install Breeze and dependencies... composer require laravel/breeze php artisan breeze:install api
Next, ensure that your application's
FRONTEND_URL environment variables are set to
After defining the appropriate environment variables, you may serve the Laravel application using the
serve Artisan command:
# Serve the application... php artisan serve
Next, clone this repository and install its dependencies with
yarn install or
npm install. Then, copy the
.env.example file to
.env and supply the URL of your backend:
Finally, run the application via
npm run dev /
yarn dev. The application will be available at
npm run dev
Note: Currently, we recommend using
localhostduring local development of your backend and frontend to avoid CORS "Same-Origin" issues.
Laravel Breeze Nuxt is open-sourced software licensed under the MIT license.