35 lines
619 B
PHP
35 lines
619 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
namespace App\Models\ItemMaster;
|
||
|
|
|
||
|
|
use App\Traits\BelongsToTenant;
|
||
|
|
use App\Traits\ModelTrait;
|
||
|
|
use Illuminate\Database\Eloquent\Model;
|
||
|
|
|
||
|
|
class TabColumn extends Model
|
||
|
|
{
|
||
|
|
use BelongsToTenant, ModelTrait;
|
||
|
|
|
||
|
|
protected $fillable = [
|
||
|
|
'tenant_id',
|
||
|
|
'tab_id',
|
||
|
|
'columns',
|
||
|
|
'created_by',
|
||
|
|
'updated_by',
|
||
|
|
];
|
||
|
|
|
||
|
|
protected $casts = [
|
||
|
|
'columns' => 'array',
|
||
|
|
'created_at' => 'datetime',
|
||
|
|
'updated_at' => 'datetime',
|
||
|
|
];
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 소속 탭
|
||
|
|
*/
|
||
|
|
public function tab()
|
||
|
|
{
|
||
|
|
return $this->belongsTo(CustomTab::class, 'tab_id');
|
||
|
|
}
|
||
|
|
}
|