class MissingAttributeModelViolationReporter extends ModelViolationReporter

Traits

Constants

private CONTEXT_REPORTED_PREFIX

Methods

container()

Retrieve the application container.

array|null
resolveEventOrigin()

No description

string|null
resolveEventOriginAsString()

No description

__construct(Closure|null $callback, bool $suppressDuplicateReports, bool $reportAfterResponse)

No description

void
__invoke(Model $model, string|array $propertyOrProperties)

Handle a model violation.

array
getViolationContext(Model $model, string $property)

Get the context data for the violation.

getViolationException(Model $model, string $property)

Get the exception representing the violation.

bool
shouldReport(Model $model, string $property)

Determine if the violation should be reported.

void
markAsReported(Model $model, string $property)

Mark a violation as reported.

Details

protected Container container()

Retrieve the application container.

Return Value

Container

protected array|null resolveEventOrigin()

No description

Return Value

array|null

protected string|null resolveEventOriginAsString()

No description

Return Value

string|null

__construct(Closure|null $callback, bool $suppressDuplicateReports, bool $reportAfterResponse)

No description

Parameters

Closure|null $callback
bool $suppressDuplicateReports
bool $reportAfterResponse

void __invoke(Model $model, string|array $propertyOrProperties)

Handle a model violation.

Parameters

Model $model
string|array $propertyOrProperties

Return Value

void

at line 13
protected array getViolationContext(Model $model, string $property)

Get the context data for the violation.

Parameters

Model $model
string $property

Return Value

array

at line 21
protected Exception getViolationException(Model $model, string $property)

Get the exception representing the violation.

Parameters

Model $model
string $property

Return Value

Exception

protected bool shouldReport(Model $model, string $property)

Determine if the violation should be reported.

Parameters

Model $model
string $property

Return Value

bool

protected void markAsReported(Model $model, string $property)

Mark a violation as reported.

Parameters

Model $model
string $property

Return Value

void