Blade scaffolding with Laravel Breeze#1 - 05:21
Cleaning up unused old records and files in Laravel applications#2 - 06:22
Get all files except specific paths in Laravel#3 - 09:41
Authenticate mobile applications with Laravel Sanctum#4 - 21:22
Verify user emails in a Laravel REST API#5 - 14:39
The only reasonable, cost-effective way to test validation in Laravel applications#6 - 06:53
Setup live reload with Laravel mix and BrowserSync#7 - 03:49
Authenticate mobile applications with Laravel Sanctum
In this video we are going to take a look over how we can use Laravel Sanctum to provide token based authentication for mobile applications.
Install laravel sanctum:
composer require laravel/sanctum
Publish configuration and migration files:
php artisan vendor:publish --provider="Laravel\Sanctum\SanctumServiceProvider"
Run the migrations:
php artisan migrate
Add the HasApiTokens trait to the User class.
Setup routes: login, registration, logout, and user.
Point the routes to the correct controller actions.