*/ protected $policies = [ // ]; /** * Register any authentication / authorization services. */ public function boot(): void { Auth::provider('legacy', function (Application $app, array $config) { $mysqlHasher = new MySQLHasher(); return new EloquentUserProvider($mysqlHasher, $config['model']); }); } }