Total Complexity | 5 |
Total Lines | 58 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
7 | class Log extends Model |
||
8 | { |
||
9 | /** |
||
10 | * @var string |
||
11 | */ |
||
12 | protected $table = 'logs'; |
||
13 | |||
14 | /** |
||
15 | * @var string |
||
16 | */ |
||
17 | protected $primaryKey = 'id'; |
||
18 | |||
19 | /** |
||
20 | * @var bool |
||
21 | */ |
||
22 | public $timestamps = true; |
||
23 | |||
24 | /** |
||
25 | * @var array |
||
26 | */ |
||
27 | protected $dates = [ |
||
28 | 'created_at', |
||
29 | 'updated_at' |
||
30 | ]; |
||
31 | |||
32 | /** |
||
33 | * @return \Illuminate\Database\Eloquent\Relations\BelongsTo |
||
34 | */ |
||
35 | public function thread() { |
||
36 | return $this->belongsTo('App\Thread', 'thread_id'); |
||
37 | } |
||
38 | |||
39 | /** |
||
40 | * @return \Illuminate\Database\Eloquent\Relations\BelongsTo |
||
41 | */ |
||
42 | public function article() { |
||
44 | } |
||
45 | |||
46 | /** |
||
47 | * @return \Illuminate\Database\Eloquent\Relations\BelongsTo |
||
48 | */ |
||
49 | public function admin() { |
||
50 | return $this->belongsTo('App\Admin', 'admin_id'); |
||
51 | } |
||
52 | |||
53 | /** |
||
54 | * @return \Illuminate\Database\Eloquent\Relations\BelongsTo |
||
55 | */ |
||
56 | public function doctor() { |
||
58 | } |
||
59 | |||
60 | /** |
||
61 | * @return \Illuminate\Database\Eloquent\Relations\BelongsTo |
||
62 | */ |
||
63 | public function member() { |
||
65 | } |
||
66 | } |
||
67 |