1.Blade scaffolding with Laravel Breeze05:21
2.Cleaning up unused old records and files in Laravel applications06:22
3.Get all files except specific paths in Laravel09:41
4.Authenticate mobile applications with Laravel Sanctum21:22
5.Verify user emails in a Laravel REST API14:39
6.The only reasonable, cost-effective way to test validation in Laravel applications06:53
7.Setup live reload with Laravel mix and BrowserSync03: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.