2020-09-28 15:41:21 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace App\Models;
|
|
|
|
|
|
2021-02-02 10:26:36 +01:00
|
|
|
use App\Enums\OCBType;
|
2020-09-28 15:41:21 +02:00
|
|
|
use Illuminate\Database\Eloquent\Model;
|
2021-03-02 14:58:59 +01:00
|
|
|
use Kwaadpepper\Enum\Traits\CastsEnums;
|
2020-09-28 15:41:21 +02:00
|
|
|
|
|
|
|
|
class ContentOCB extends Model
|
|
|
|
|
{
|
2021-02-02 10:26:36 +01:00
|
|
|
use CastsEnums;
|
|
|
|
|
|
|
|
|
|
protected $enumCasts = [
|
|
|
|
|
'type' => OCBType::class
|
|
|
|
|
];
|
|
|
|
|
|
2020-09-28 15:41:21 +02:00
|
|
|
protected $table = 'content_ocb';
|
|
|
|
|
}
|