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.

34 lines
622 B
PHP

<?php
namespace App\Models;
class Board extends BaseSoftDeleteModel
{
protected $table = 'board';
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'code', 'name', 'skin', 'template', 'status'
];
/**
* The attributes that should be hidden for arrays.
*
* @var array
*/
protected $hidden = [
];
protected $visible = [
'id', 'code', 'name', 'skin', 'template', 'status'
];
public function articles()
{
return $this->hasMany('App\Models\BoardArticle', 'board_id');
}
}