'int', 'ptype' => 'string', 'v0' => 'string', 'v1' => 'string', 'v2' => 'string', 'v3' => 'string', 'v4' => 'string', 'v5' => 'string', ]; /** * 架构函数 * @access public * @param array $data 数据 */ public function __construct($data = []) { $this->connection = $this->config('database.connection') ?: ''; $this->table = $this->config('database.rules_table'); $this->name = $this->config('database.rules_name'); parent::__construct($data); } /** * Gets config value by key. * * @param string $key * @param string $default * * @return mixed */ protected function config(string $key = null, $default = null) { $driver = config('tauthz.default'); return config('tauthz.enforcers.'.$driver.'.'.$key, $default); } }