'App\Policies\ModelPolicy', ]; /** * Register any authentication / authorization services. * * @return void */ public function boot() { $this->registerPolicies(); Auth::provider('legacy', function ($app, array $config) { return new LegacyUserProvider(); }); } }