Skip to content

Commit e343966

Browse files
committed
update(model): 可以填充的字段名
1 parent 813d3bb commit e343966

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

laravel/app/Permission.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,14 @@
66

77
class Permission extends Model
88
{
9-
//
9+
/**
10+
* 与模型关联的数据表
11+
*
12+
* @var string
13+
*/
14+
// protected $table = 'permissions';
15+
16+
protected $fillable = ['name', 'route'];
1017

1118
public function roles()
1219
{

0 commit comments

Comments
 (0)