for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Thinktomorrow\Chief\App\Providers;
use Thinktomorrow\Chief\Authorization\ChiefUserProvider;
use Illuminate\Support\Facades\Auth;
use Illuminate\Foundation\Support\Providers\AuthServiceProvider as ServiceProvider;
class AuthServiceProvider extends ServiceProvider
{
/**
* Register any authentication / authorization services.
*
* @return void
*/
public function boot()
$this->registerPolicies();
Auth::provider('chief-eloquent', function ($app, array $config) {
return new ChiefUserProvider($app['hash'], $config['model']);
});
}