▶️ In this part:
We set up Laravel Sanctum and implement basic API authentication with registration and login routes.
✅ What’s covered:
Laravel Sanctum installation & config
Login & registration routes
Postman test
🛠️ Stack:
Laravel 12
Sanctum
📺 Full Playlist: • Role-Based Authentication with Laravel & R...
🧠 This is part of the series:
"Role-Based Authentication with Laravel & React (Sanctum + Gates + CRUD)"
Video is silent with background music, focused on clean, distraction-free programming.
Source Code: https://github.com/damirpristav/role-...
00:00 - Intro
00:05 - Setup
03:50 - Create UserRole enum
04:44 - update User model & migration
09:53 - AuthController - login & logout methods
16:18 - Test authentication with postman