2021-05-15 19:29:44 +08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace App\Models;
|
|
|
|
|
|
|
|
|
|
|
2025-10-12 03:48:04 +07:00
|
|
|
use App\Models\Traits\NexusActivityLogTrait;
|
|
|
|
|
|
2021-05-15 19:29:44 +08:00
|
|
|
class Codec extends NexusModel
|
|
|
|
|
{
|
2025-10-12 03:48:04 +07:00
|
|
|
use NexusActivityLogTrait;
|
|
|
|
|
|
2021-05-15 19:29:44 +08:00
|
|
|
protected $table = 'codecs';
|
2021-06-21 19:56:25 +08:00
|
|
|
|
2022-10-30 17:30:24 +08:00
|
|
|
protected $fillable = ['name', 'sort_index', 'mode',];
|
2022-09-07 17:10:52 +08:00
|
|
|
|
2021-06-21 19:56:25 +08:00
|
|
|
public static function getLabelName()
|
|
|
|
|
{
|
|
|
|
|
return nexus_trans('searchbox.sub_category_codec_label');
|
|
|
|
|
}
|
2022-10-27 20:21:54 +08:00
|
|
|
|
|
|
|
|
public function search_box()
|
|
|
|
|
{
|
|
|
|
|
return $this->belongsTo(SearchBox::class, 'mode', 'id');
|
|
|
|
|
}
|
2021-05-15 19:29:44 +08:00
|
|
|
}
|