Methods |
public
|
getFillable(): array
Get the fillable attributes for the model.
Get the fillable attributes for the model.
|
#
|
public
|
fillable(array $fillable): $this
Set the fillable attributes for the model.
Set the fillable attributes for the model.
|
#
|
public
|
mergeFillable(array $fillable): $this
Merge new fillable attributes with existing fillable attributes on the model.
Merge new fillable attributes with existing fillable attributes on the model.
|
#
|
public
|
getGuarded(): array
Get the guarded attributes for the model.
Get the guarded attributes for the model.
|
#
|
public
|
guard(array $guarded): $this
Set the guarded attributes for the model.
Set the guarded attributes for the model.
|
#
|
public
|
mergeGuarded(array $guarded): $this
Merge new guarded attributes with existing guarded attributes on the model.
Merge new guarded attributes with existing guarded attributes on the model.
|
#
|
public
static
|
unguard(bool $state = true): void
Disable all mass assignable restrictions.
Disable all mass assignable restrictions.
|
#
|
public
static
|
reguard(): void
Enable the mass assignment restrictions.
Enable the mass assignment restrictions.
|
#
|
public
static
|
isUnguarded(): bool
Determine if the current state is "unguarded".
Determine if the current state is "unguarded".
|
#
|
public
static
|
unguarded(callable $callback): mixed
Run the given callable while being unguarded.
Run the given callable while being unguarded.
|
#
|
public
|
isFillable(string $key): bool
Determine if the given attribute may be mass assigned.
Determine if the given attribute may be mass assigned.
|
#
|
public
|
isGuarded(string $key): bool
Determine if the given key is guarded.
Determine if the given key is guarded.
|
#
|
public
|
totallyGuarded(): bool
Determine if the model is totally guarded.
Determine if the model is totally guarded.
|
#
|