hostville / dorcas-laravel-compat
Built to make Dorcas work seamlessly with Laravel
Installs: 172
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/hostville/dorcas-laravel-compat
Requires
- php: >=5.6.4
- hostville/dorcas-sdk-php: dev-master
- illuminate/auth: ^5.5
Requires (Dev)
- phpunit/phpunit: ^6
This package is auto-updated.
Last update: 2020-10-21 13:12:04 UTC
README
A small pack of parts to make Dorcas play well with Laravel.
Authentication
The Dorcas PHP SDK provides some utility functions for creating user accounts, and authenticating with a username-password combination (provided you have details for a Password Grant client).
To integrate your Laravel install with Dorcas for user authentication, you should make changes to your
config/auth.php
file.
'guards' => [ 'web' => [ 'driver' => 'session', 'provider' => 'dorcas', // formerly users ], 'api' => [ 'driver' => 'token', 'provider' => 'users', ], ],
This package registers a new UserProvider
which you can use with your installation.