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.

41 lines
706 B
PHTML

2 years ago
<?php
namespace App\Models;
class BoardAsset extends BaseModel
{
protected $table = 'board_assets';
public $timestamps = false;
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'article_id',
'uid',
];
/**
* The attributes that should be hidden for arrays.
*
* @var array
*/
protected $hidden = [
];
protected $visible = [
'uid'
];
public function article()
{
return $this->belongsTo('App\Models\BoardArticle', 'article_id');
}
public function asset()
{
return $this->belongsTo('App\Models\Asset', 'uid', 'uid');
}
}