dev-master
9999999-devScaffolder for the Smart Entity Pattern
The Requires
Wallogit.com
2017 © Pedro Peláez
Scaffolder for the Smart Entity Pattern
Add the following to App\Providers\AuthServiceProvider in the boot function below $this->registerPolicies():, (*1)
`Auth::provider('smartprovider', function() { return new \App\Extensions\SmartUserProvider($this->app['hash'], app()->make(\App\Services\UserService::class)); });, (*2)
In config/auth:
1) Change guards.web.provider to 'smart'
2) Add the following to the providers array:
'smart' => [
'driver' => 'smartprovider',
'model' => App\Entities\UserEntity::class,
], (*3)
Scaffolder for the Smart Entity Pattern