File tree Expand file tree Collapse file tree 2 files changed +6
-8
lines changed Expand file tree Collapse file tree 2 files changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -120,13 +120,13 @@ $product = Product::find(1);
120120$product->addReview([
121121 'review' => 'Great product! The quality is superb and customer service was excellent.',
122122 'department' => 'sales', // Optional, defaults to 'default'
123- 'recommend' => true,
123+ 'recommend' => true, // Whether the user would recommend the product being reviewed
124124 'approved' => true, // Optionally override default approval (false) by providing 'approved'
125125 'ratings' => [
126- 'overall' => 5 ,
127- 'customer_service' => 4 ,
128- 'quality ' => 5 ,
129- 'price' => 4 ,
126+ 'overall' => 'Overall Rating' ,
127+ 'communication' => 'Communication Rating' ,
128+ 'follow_up ' => 'Follow-Up Rating' ,
129+ 'price' => 'Price Rating' ,
130130 ],
131131], auth()->id());
132132```
Original file line number Diff line number Diff line change 4242 'customer_service ' => 'Customer Service Rating ' ,
4343 'quality ' => 'Quality Rating ' ,
4444 'price ' => 'Price Rating ' ,
45- 'recommendation ' => 'Would Recommend? ' ,
4645 ],
4746 ],
4847 'sales ' => [
4948 'ratings ' => [
5049 'overall ' => 'Overall Rating ' ,
5150 'communication ' => 'Communication Rating ' ,
5251 'follow_up ' => 'Follow-Up Rating ' ,
53- 'recommendation ' => 'Would Recommend? ' ,
52+ 'price ' => 'Price Rating ' ,
5453 ],
5554 ],
5655 'support ' => [
5756 'ratings ' => [
5857 'overall ' => 'Overall Rating ' ,
5958 'speed ' => 'Response Speed ' ,
6059 'knowledge ' => 'Knowledge Rating ' ,
61- 'recommendation ' => 'Would Recommend? ' ,
6260 ],
6361 ],
6462 ],
You can’t perform that action at this time.
0 commit comments