fang


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
namespace App\Models;


class BaseCorpsModel extends BaseModel
{

    protected $table = 'base_corp';

    protected $fillable = ['name','corp_id','corp_id','corp_trade','remark'];

    protected static function boot()
    {
        parent::boot();

        static::creating(function ($model) {
            $model->attributes['corp_id'] = $model->CreateGuid();
        });
    }


}

 

赞(0) 打赏
标签:

上一篇:

下一篇:

相关推荐

0 条评论关于"BaseModel"

表情

最新评论

    暂无留言哦~~

支付宝扫一扫打赏

微信扫一扫打赏