W3cubDocs

/Laravel 5.8

JsonExpression

class JsonExpression extends Expression (View source)

Properties

protected mixed $value The value of the expression. from Expression

Methods

void __construct(mixed $value)

Create a new raw query expression.

mixed getValue()

Get the value of the expression.

from Expression
string __toString()

Get the value of the expression.

from Expression
string getJsonBindingParameter(mixed $value)

Translate the given value into the appropriate JSON binding parameter.

Details

void __construct(mixed $value)

Create a new raw query expression.

Parameters

mixed $value

Return Value

void

mixed getValue()

Get the value of the expression.

Return Value

mixed

string __toString()

Get the value of the expression.

Return Value

string

protected string getJsonBindingParameter(mixed $value)

Translate the given value into the appropriate JSON binding parameter.

Parameters

mixed $value

Return Value

string

Exceptions

InvalidArgumentException

© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.8/Illuminate/Database/Query/JsonExpression.html