App\Models\Commodity {#3154
#guarded: array:1 [
0 => "id"
]
#connection: "mysql"
#table: "commodities"
#primaryKey: "id"
#keyType: "int"
+incrementing: true
#with: []
#withCount: []
#perPage: 15
+exists: true
+wasRecentlyCreated: false
#attributes: array:9 [
"id" => 4
"name" => "Kacang Hijau"
"status" => "Active"
"created_at" => "2022-11-29 15:25:35"
"updated_at" => null
"harga_acuan" => "<ul><li>Kacang Hijau Lokal<ul><li>Kering: Rp0</li></ul></li></ul>"
"growth" => []
"colors" => []
"commodity_types" => Illuminate\Database\Eloquent\Collection {#3555
#items: array:1 [
0 => App\Models\CommodityType {#3094
#guarded: array:1 [
0 => "id"
]
#connection: "mysql"
#table: "commodity_types"
#primaryKey: "id"
#keyType: "int"
+incrementing: true
#with: []
#withCount: []
#perPage: 15
+exists: true
+wasRecentlyCreated: false
#attributes: array:9 [
"id" => 6
"commodity_id" => 4
"name" => "Lokal"
"status" => "Active"
"created_at" => "2022-11-29 15:43:07"
"updated_at" => null
"growth" => []
"colors" => []
"commodity_products" => Illuminate\Database\Eloquent\Collection {#3219
#items: array:1 [
0 => App\Models\CommodityProduct {#3192
#guarded: array:1 [
0 => "id"
]
#connection: "mysql"
#table: "commodity_products"
#primaryKey: "id"
#keyType: "int"
+incrementing: true
#with: []
#withCount: []
#perPage: 15
+exists: true
+wasRecentlyCreated: false
#attributes: array:14 [
"id" => 11
"commodity_id" => 4
"commodity_type_id" => 6
"name" => "Kering"
"kadar_air_min" => 14
"kadar_air_max" => 35
"harga_acuan" => 0
"harga_min" => 10000
"harga_max" => 20000
"status" => "Active"
"created_at" => "2022-11-29 16:06:51"
"updated_at" => null
"growth" => []
"colors" => []
]
#original: array:12 [
"id" => 11
"commodity_id" => 4
"commodity_type_id" => 6
"name" => "Kering"
"kadar_air_min" => 14
"kadar_air_max" => 35
"harga_acuan" => 0
"harga_min" => 10000
"harga_max" => 20000
"status" => "Active"
"created_at" => "2022-11-29 16:06:51"
"updated_at" => null
]
#changes: []
#casts: []
#classCastCache: []
#dates: []
#dateFormat: null
#appends: []
#dispatchesEvents: []
#observables: []
#relations: []
#touches: []
+timestamps: true
#hidden: []
#visible: []
#fillable: []
}
]
}
]
#original: array:6 [
"id" => 6
"commodity_id" => 4
"name" => "Lokal"
"status" => "Active"
"created_at" => "2022-11-29 15:43:07"
"updated_at" => null
]
#changes: []
#casts: []
#classCastCache: []
#dates: []
#dateFormat: null
#appends: []
#dispatchesEvents: []
#observables: []
#relations: array:1 [
"commodity_products" => Illuminate\Database\Eloquent\Collection {#3185
#items: array:1 [
0 => App\Models\CommodityProduct {#3192}
]
}
]
#touches: []
+timestamps: true
#hidden: []
#visible: []
#fillable: []
}
]
}
]
#original: array:5 [
"id" => 4
"name" => "Kacang Hijau"
"status" => "Active"
"created_at" => "2022-11-29 15:25:35"
"updated_at" => null
]
#changes: []
#casts: []
#classCastCache: []
#dates: []
#dateFormat: null
#appends: []
#dispatchesEvents: []
#observables: []
#relations: array:1 [
"commodity_types" => Illuminate\Database\Eloquent\Collection {#2206
#items: array:1 [
0 => App\Models\CommodityType {#3094}
]
}
]
#touches: []
+timestamps: true
#hidden: []
#visible: []
#fillable: []
}
-2
"end() expects parameter 1 to be array, bool given"