graph LR
Authentication --> Authorization
Breeze is the Auth starter kit for Laravel. It offers views and components for a variety of frontend stacks. Since Breeze offers some frontend views written in HTML/CSS/JavaScript it requires NodeJS and NPM to be installed. NodeJS is the runtime for JavaScript and NPM is the package manager for and JavaScript packages.
<aside> 📌
Installing NodeJS / NPM in Windows
winget install -e --id OpenJS.NodeJS
Installing NodeJS / NPM in Linux:
sudo apt install nodejs npm
</aside>
<aside> 💡
Installing NPM dependencies:
npm install
Building frontend files:
npm run build
</aside>
<aside> ⚠️
Breeze was removed as a starter kit in the newest versions of Laravel Installer and can only be installed manually
</aside>
<aside> 💡
Adding Breeze to an existing Laravel application
composer require laravel/breeze --dev # install blade as a dependency
php artisan breeze:install # install blade views and routes
npm install # install blade client side dependencies using npm
Breeze automatically creates migrations for users tables in database
</aside>
Breeze will create new routes at /login
, /register
and /dashboard
<aside> 📌
You should always use composer run dev
to run your project for development
</aside>
<aside> 💡
In Windows
winget install -e --id Git.Git
In Linux
sudo apt install git
</aside>
Create a new empty repository on GitHub and copy the link to the repository
Register your email and name on Git CLI
git config --global user.name [YOUR-NAME]
git config --global user.email [YOUR-EMAIL]
Initialize a new git repository in project directory
git init
Add all files in project directory
git add .