|
1
|
|
|
<?php |
|
2
|
|
|
|
|
3
|
|
|
namespace CSlant\Blog\Core\Models; |
|
4
|
|
|
|
|
5
|
|
|
use AllowDynamicProperties; |
|
6
|
|
|
use Carbon\Carbon; |
|
7
|
|
|
use CSlant\Blog\Core\Models\Base\BaseMetaBox; |
|
8
|
|
|
use Illuminate\Database\Eloquent\Builder; |
|
9
|
|
|
|
|
10
|
|
|
/** |
|
11
|
|
|
* Class MetaBox |
|
12
|
|
|
* |
|
13
|
|
|
* @package CSlant\Blog\Core\Models |
|
14
|
|
|
* |
|
15
|
|
|
* @property int $id |
|
16
|
|
|
* @property string $meta_key |
|
17
|
|
|
* @property string $meta_value |
|
18
|
|
|
* @property int $reference_id |
|
19
|
|
|
* @property string $reference_type |
|
20
|
|
|
* @property Carbon $created_at |
|
21
|
|
|
* @property Carbon $updated_at |
|
22
|
|
|
* |
|
23
|
|
|
* @method static Builder|MetaBox newModelQuery() |
|
24
|
|
|
* @method static Builder|MetaBox newQuery() |
|
25
|
|
|
* @method static Builder|MetaBox query() |
|
26
|
|
|
* @method static Builder|MetaBox first() |
|
27
|
|
|
* @method static Builder|MetaBox find($id) |
|
28
|
|
|
* @method static Builder|MetaBox with($relations) |
|
29
|
|
|
* @method static Builder|MetaBox whereId($value) |
|
30
|
|
|
* @method static Builder|MetaBox whereIn($column, $values) |
|
31
|
|
|
* @method static Builder|MetaBox where($column, $operator = null, $value = null, $boolean = 'and') |
|
32
|
|
|
* @method static MetaBox findOrFail($id) |
|
33
|
|
|
* @method static MetaBox create($data) |
|
34
|
|
|
* |
|
35
|
|
|
* @mixin BaseMetaBox |
|
36
|
|
|
*/ |
|
37
|
|
|
#[AllowDynamicProperties] |
|
38
|
|
|
class MetaBox extends BaseMetaBox |
|
39
|
|
|
{ |
|
40
|
|
|
protected $fillable = [ |
|
41
|
|
|
'meta_key', |
|
42
|
|
|
'meta_value', |
|
43
|
|
|
'reference_id', |
|
44
|
|
|
'reference_type', |
|
45
|
|
|
]; |
|
46
|
|
|
|
|
47
|
|
|
public static function getBaseModel(): string |
|
48
|
|
|
{ |
|
49
|
|
|
return 'Botble\Base\Models\MetaBox'; |
|
50
|
|
|
} |
|
51
|
|
|
} |
|
52
|
|
|
|