/** * Set custom table names. * * @param array $map * @return void */ public static function tables(array $map) { Models::setTables($map); }
/** * Set the classname of the user model to be used by Bouncer. * * @return void */ protected function setUserModel() { $config = $this->app->make('config'); $model = $config->get('auth.providers.users.model', function () use($config) { return $config->get('auth.model', \App\User::class); }); Models::setUsersModel($model); Models::setTables(['users' => Models::user()->getTable()]); }