Laravel Airlock provides a featherweight authentication system for SPAs and simple APIs.
-
Clone repository and install composer dependencies
composer require laravel/airlock
-
Setting database and run migration
php artisan migrate
-
Start application
php artisan serve
-
Implementation examples - follow the routes/api.php file
- Generate Token & Set token abilities
- Authenticate Application using Token
- Get current loggedIn User
- SPA authentication - get the code in resources/view/welcome.blade.php
- Revoke tokens