tnmdev/auth-service

Service integration for Auth Server

v1.0.5 2019-08-28 10:46 UTC

This package is auto-updated.

Last update: 2024-04-07 14:34:50 UTC


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... with protected $guarded = []