Skip to content

Commit 89fc971

Browse files
committed
Wip
1 parent 24f7e14 commit 89fc971

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff 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
```

config/review-rateable.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,23 +42,21 @@
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
],

0 commit comments

Comments
 (0)