Authorization and Authentication

graph LR
  Authentication --> Authorization

Breeze

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> 📌

</aside>

<aside> 💡

</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>

Using Git and GitHub

Installing Git

<aside> 💡

</aside>

Pushing Project Repository

  1. Create a new empty repository on GitHub and copy the link to the repository

  2. Register your email and name on Git CLI

    git config --global user.name [YOUR-NAME]
    git config --global user.email [YOUR-EMAIL]
    
  3. Initialize a new git repository in project directory

    git init
    
  4. Add all files in project directory

    git add .