tokenly / laravel-api-provider
An API service provider for Laravel
Installs: 15 134
Dependents: 1
Suggesters: 0
Security: 0
Stars: 6
Watchers: 4
Forks: 1
Open Issues: 0
Requires
- php: >=7.0.0
- ramsey/uuid: ^3
- tokenly/hmac-auth: ^1.2.0
- tokenly/laravel-event-log: ^3
- tokenly/token-generator: ^1
Requires (Dev)
- phpunit/phpunit: ~6
This package is not auto-updated.
Last update: 2024-11-09 17:09:08 UTC
README
An API service provider for Laravel. Used by various Tokenly services.
Installation
composer require tokenly/laravel-api-provider
- Create
config/api.php
and add a file with settings like the ones below
<?php return [ 'userRepositoryClass' => 'App\Repositories\UserRepository', 'userClass' => 'App\Models\User', ];
- Update
config/auth.php
and modify the user class
// ...
'providers' => [
'users' => [
'driver' => 'eloquent',
'model' => App\Models\User::class,
],
],
// ...