A free open source IT asset/license management system
Pull created_at from orders as fillable
sniped9354533a8de
diff --git a/app/Models/OrderItem.php b/app/Models/OrderItem.phpindex 1504b11c57..2e23406dd9 100644--- a/app/Models/OrderItem.php+++ b/app/Models/OrderItem.php@@ -22,13 +22,16 @@ class OrderItem extends Modelprotected $table = 'order_items';+ // NOTE: `created_by` is deliberately NOT fillable — accepting it via+ // mass-assignment would let a request attribute a line to any+ // user_id the caller writes. All internal writers set it via+ // explicit `$line->created_by = auth()->id()`.protected $fillable = ['order_id','item_type','item_id','qty','price',- 'created_by',];protected $casts = [