This commit is contained in:
2025-12-10 14:59:41 +08:00
parent 6b3fb790f7
commit c0bd385b1a
7 changed files with 55 additions and 10 deletions
+1 -1
View File
@@ -40,7 +40,7 @@ class Post extends Model
/**
* 允许自动填充模型字段
*/
protected $fillable = ['id', 'user_id', 'category_id', 'content', 'location_name', 'latitude', 'longitude', 'status', 'sort', 'like', 'favorite', 'comment', 'browse', 'created_at', 'updated_at'];
protected $fillable = ['id', 'user_id', 'category_id', 'sku_id', 'content', 'location_name', 'latitude', 'longitude', 'status', 'sort', 'like', 'favorite', 'comment', 'browse', 'created_at', 'updated_at'];
/**
* 不允许自动填充模型字段