You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

46 lines
800 B
PHTML

2 years ago
<?php
namespace App\Models;
class BoardComment extends BaseSoftDeleteModel
{
protected $table = 'board_comment';
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'article_id',
'uid',
'parent_id',
'content',
'path',
'created_id',
'created_at'
];
/**
* The attributes that should be hidden for arrays.
*
* @var array
*/
protected $hidden = [
];
protected $visible = [
'article_id',
'uid',
'parent_id',
'content',
'path',
'created_id',
'created_at'
];
public function article()
{
return $this->belongsTo('App\Models\BoardArticle', 'article_id');
}
}