添加文章模型白名单
parent
f90cdc1e78
commit
c53ddd2192
|
|
@ -18,7 +18,7 @@ class Article extends Model
|
|||
use HasDateTimeFormatter;
|
||||
use Filterable;
|
||||
|
||||
protected $fillable = ['author', 'category_id', 'admin_user_id', 'title', 'sub_title', 'cover', 'is_recommend', 'content', 'is_enable', 'sort', 'published_at', 'remarks', 'category_path'];
|
||||
protected $fillable = ['author', 'category_id', 'admin_user_id', 'title', 'sub_title', 'cover', 'is_recommend', 'content', 'is_enable', 'sort', 'published_at', 'remarks', 'category_path', 'like_nums', 'read_nums'];
|
||||
|
||||
protected $dates = ['published_at'];
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue