first commit
This commit is contained in:
22
app/Models/System/Dict.php
Normal file
22
app/Models/System/Dict.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | SentCMS [ WE CAN DO IT JUST THINK IT ]
|
||||
// +----------------------------------------------------------------------
|
||||
// | Copyright (c) 2024 http://www.tensent.cn All rights reserved.
|
||||
// +----------------------------------------------------------------------
|
||||
// | Author: molong <molong@tensent.cn> <http://www.tensent.cn>
|
||||
// +----------------------------------------------------------------------
|
||||
namespace App\Models\System;
|
||||
|
||||
use Illuminate\Database\Eloquent\Casts\Attribute;
|
||||
|
||||
class Dict extends \App\Models\BaseModel {
|
||||
|
||||
protected $table = 'system_dicts';
|
||||
protected $fillable = ['title', 'values', 'group_id', 'group_name', 'sort', 'status'];
|
||||
protected $hidden = ['deleted_at'];
|
||||
|
||||
public function group(){
|
||||
return $this->belongsTo(DictGroup::class, 'group_id', 'id');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user