tnmdev / auth-service
Service integration for Auth Server
v1.0.5
2019-08-28 10:46 UTC
Requires
- doctrine/dbal: ^2.9
- guzzlehttp/guzzle: ^6.3
- laravel/passport: ^7.2
Requires (Dev)
- phpunit/phpunit: ^7.5
README
Install the package using composer
composer require tnmdev/auth-service
Migrate the tables
php artisan migrate
Install Laravel passport
php artisan passport:install
Create env
variable AUTH_SERVER_CLIENT_SECRET
and assign it the client secret provided by the auth server
Make the following changes in App\User
model
- Implement
TNM\AuthService\Models\HasPermissions
- Use
TNM\AuthService\Models\HasPermissionsTrait
- Replace
protected $fillable...
withprotected $guarded = []