-
Notifications
You must be signed in to change notification settings - Fork 52
Expand file tree
/
Copy pathTermMeta.php
More file actions
48 lines (39 loc) · 845 Bytes
/
Copy pathTermMeta.php
File metadata and controls
48 lines (39 loc) · 845 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<?php namespace Herbert\Framework\Models;
use Illuminate\Database\Eloquent\Model;
class TermMeta extends Model {
/**
* Disable timestamps.
*
* @var boolean
*/
public $timestamps = false;
/**
* The table associated with the model.
*
* @var string
*/
protected $table = 'termmeta';
/**
* The primary key for the model.
*
* @var string
*/
protected $primaryKey = 'meta_id';
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'meta_key', 'meta_value'
];
/**
* Post relationship.
*
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo
*/
public function term()
{
return $this->belongsTo(__NAMESPACE__ . '\Term', 'term_id');
}
}