HasAttributes (Database\Eloquent\Concerns)

HasAttributes

trait HasAttributes (View source)

Properties

static bool $snakeAttributes Indicates whether attributes are snake cased on arrays.

Methods

array attributesToArray()

Convert the model's attributes to an array.

array relationsToArray()

Get the model's relationships in array form.