class UserFeedback extends Model (View source)

Traits

EloquentJoins\ModelTrait

Properties

bool $timestamps Indicates if the model should be timestamped. from  Model

Methods

mixed
__get( string $property)

Mustard uses camel case for class properties, and snake case for database columns.

from  Model
getRelationValue($key)

Get a relationship. We override this method from the parent to add a camel_case() conversion for the key.

from  Model
__set( string $property, mixed $value)

Mustard uses camel case for class properties, and snake case for database columns.

from  Model
getUrlAttribute()

No description

from  Model
getSlugAttribute()

No description

from  Model
bool
isPositive()

Return true if feedback is positive.

bool
isNegative()

Return true if feedback is negative.

bool
isNeutral()

Return true if feedback is neutral.

Builder
scopePositive( Builder $query)

Scope of positive feedback.

Builder
scopeNegative( Builder $query)

Scope of negative feedback.

Builder
scopeNeutral( Builder $query)

Scope of neutral feedback.

BelongsTo
purchase()

Relationship to a purchase.

BelongsTo
rater()

Relationship to a rating user.

BelongsTo
subject()

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.

Parameters

string $property

Return Value

mixed

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.

Parameters

$key

in Model at line 79
__set( string $property, mixed $value)

Mustard uses camel case for class properties, and snake case for database columns.

Parameters

string $property
mixed $value

in Model at line 84
getUrlAttribute()

in Model at line 89
getSlugAttribute()

at line 45
bool isPositive()

Return true if feedback is positive.

Return Value

bool

at line 55
bool isNegative()

Return true if feedback is negative.

Return Value

bool

at line 65
bool isNeutral()

Return true if feedback is neutral.

Return Value

bool

at line 77
Builder scopePositive( Builder $query)

Scope of positive feedback.

Parameters

Builder $query

Return Value

Builder

at line 89
Builder scopeNegative( Builder $query)

Scope of negative feedback.

Parameters

Builder $query

Return Value

Builder

at line 101
Builder scopeNeutral( Builder $query)

Scope of neutral feedback.

Parameters

Builder $query

Return Value

Builder

at line 111
BelongsTo purchase()

Relationship to a purchase.

Return Value

BelongsTo

at line 121
BelongsTo rater()

Relationship to a rating user.

Return Value

BelongsTo

at line 131
BelongsTo subject()

Relationship to a rated user.

Return Value

BelongsTo