UserFeedback
class UserFeedback extends Model (View source)
Traits
Properties
bool | $timestamps | Indicates if the model should be timestamped. | from Model |
Methods
Mustard uses camel case for class properties, and snake case for database columns.
Get a relationship. We override this method from the parent to add a camel_case() conversion for the key.
Mustard uses camel case for class properties, and snake case for database columns.
Return true if feedback is positive.
Return true if feedback is negative.
Return true if feedback is neutral.
Scope of positive feedback.
Scope of negative feedback.
Scope of neutral feedback.
Relationship to a purchase.
Relationship to a rating user.
Relationship to a rated user.
Details
in
Model at line 45
mixed
__get(
string $property)
Mustard uses camel case for class properties, and snake case for database columns.
in
Model at line 54
getRelationValue($key)
Get a relationship. We override this method from the parent to add a camel_case() conversion for the key.
in
Model at line 79
__set(
string $property,
mixed $value)
Mustard uses camel case for class properties, and snake case for database columns.
in
Model at line 84
getUrlAttribute()
in
Model at line 89
getSlugAttribute()
at line 45
bool
isPositive()
Return true if feedback is positive.
at line 55
bool
isNegative()
Return true if feedback is negative.
at line 65
bool
isNeutral()
Return true if feedback is neutral.
at line 77
Builder
scopePositive(
Builder $query)
Scope of positive feedback.
at line 89
Builder
scopeNegative(
Builder $query)
Scope of negative feedback.
at line 101
Builder
scopeNeutral(
Builder $query)
Scope of neutral feedback.
at line 111
BelongsTo
purchase()
Relationship to a purchase.
at line 121
BelongsTo
rater()
Relationship to a rating user.
at line 131
BelongsTo
subject()
Relationship to a rated user.