We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 23766ea + f5be02f commit c616ba1Copy full SHA for c616ba1
src/model/Rule.php
@@ -10,6 +10,21 @@
10
*/
11
class Rule extends Model implements Arrayable
12
{
13
+ /**
14
+ * 设置字段信息
15
+ *
16
+ * @var array
17
+ */
18
+ protected $schema = [
19
+ 'id' => 'int',
20
+ 'ptype' => 'string',
21
+ 'v0' => 'string',
22
+ 'v1' => 'string',
23
+ 'v2' => 'string',
24
+ 'v3' => 'string',
25
+ 'v4' => 'string',
26
+ 'v5' => 'string',
27
+ ];
28
/**
29
* 架构函数
30
* @access public
@@ -36,4 +51,4 @@ protected function config(string $key = null, $default = null)
36
51
$driver = config('tauthz.default');
37
52
return config('tauthz.enforcers.'.$driver.'.'.$key, $default);
38
53
}
39
-}
54
+}
0 commit comments