4
0
Fork 0

添加文章模型白名单

master
vine_liutk 2022-08-10 15:04:39 +08:00
parent f90cdc1e78
commit c53ddd2192
1 changed files with 1 additions and 1 deletions

View File

@ -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'];