Skip to content

Commit 96ef3b6

Browse files
author
jay
committed
r
1 parent 8c1c071 commit 96ef3b6

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

_posts/doc/2020-11-05-Repository-Rule.markdown

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -273,9 +273,17 @@ _字段的属性名和字段名都可以识别。_
273273

274274
**生效条件**
275275

276-
如果规则值真不为空,则生效。
276+
如果规则值真不为空,则生效。
277+
278+
**简便写法**
279+
280+
```php
281+
$rules = [
282+
'user_id' . Rule::RA_JOIN => 'u' 必填参数 表别名
283+
];
284+
```
277285

278-
**写法**
286+
**完整写法**
279287

280288
```php
281289
$rules = [

0 commit comments

Comments
 (0)