创建版本

This commit is contained in:
2021-02-22 12:17:00 +08:00
commit af555f49c3
2332 changed files with 369202 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
<?php namespace Gdoo\Customer\Models;
use Gdoo\Index\Models\BaseModel;
class Region extends BaseModel
{
protected $table = 'customer_region';
/**
* 设置字段黑名单
*/
protected $guarded = ['id'];
public function parent()
{
return $this->belongsTo('Gdoo\Customer\Region');
}
public function scopeDialog($q, $value)
{
return $q->whereIn('id', $value)
->pluck('name', 'id');
}
}