trait GuardsAttributes

Properties

protected array $fillable

The attributes that are mass assignable.

Methods

array
getFillable()

Get the fillable attributes for the model.

$this
fillable(array $fillable)

Set the fillable attributes for the model.

array
fillableFromArray(array $attributes)

Get the fillable attributes of a given array.

bool
isFillable(string $key)

Determine if the given attribute may be mass assigned.

Details

at line 21
array getFillable()

Get the fillable attributes for the model.

Return Value

array

at line 33
$this fillable(array $fillable)

Set the fillable attributes for the model.

Parameters

array $fillable

Return Value

$this

at line 47
protected array fillableFromArray(array $attributes)

Get the fillable attributes of a given array.

Parameters

array $attributes

Return Value

array

at line 65
bool isFillable(string $key)

Determine if the given attribute may be mass assigned.

Parameters

string $key

Return Value

bool