Laravel Breeze is a minimal and simple starting point for your authentication scaffolding in Laravel. It’s the successor to the
laravel/ui package and is built using Tailwind CSS, AlpineJS and Blade Components. It publishes everything needed for auth into your project folder, which means it’s easily customizable - and even includes tests.
Laravel Jetstream is a beautifully designed application scaffolding tool that provides a great starting point for your new applications. It’s built with Tailwind CSS, AlpineJS and Blade Components and includes features like login, registration, profile management, two-factor auth, session management, API tokens, and teams.
In this episode, we take a look at all of these features from a user’s point of view.
Let's now review Jetstream’s API tokens feature. This is technically a feature of Laravel Sanctum, but Jetstream includes all the necessary frontend views and scaffolding to accomplish this. API Tokens allow you to issue API tokens / personal access tokens that may be used to authenticate API requests to your application.
Let's take a look at turning on two-factor authentication from within the user’s dashboard. This involves rendering a QR code and generating recovery codes. We also take a look at building the two-factor challenge that requires the user to enter these codes to complete the authentication process.
Let's now have a look at performing authentication manually using Laravel's built in authentication features. We'll start off by implementing a typical login and registration system.