DiscardedAttributeViolationReporter
class DiscardedAttributeViolationReporter extends ModelViolationReporter
Traits
Constants
| private CONTEXT_REPORTED_PREFIX |
|
Methods
array|null
resolveEventOrigin(array|null $backtrace = null)
Resolve the code location of the first application frame of the event.
from
ResolvesEventOrigin
string|null
resolveEventOriginAsString()
Resolve the code location of the event as a "file:line" string.
from
ResolvesEventOrigin
__construct(callable|null $callback, bool $suppressDuplicateReports, bool $reportAfterResponse)
Create a new model violation reporter instance.
void
array
bool
void
Details
in
ResolvesEventOrigin at line 15
protected Container
container()
Retrieve the application container.
in
ResolvesEventOrigin at line 25
protected array|null
resolveEventOrigin(array|null $backtrace = null)
Resolve the code location of the first application frame of the event.
in
ResolvesEventOrigin at line 52
protected string|null
resolveEventOriginAsString()
Resolve the code location of the event as a "file:line" string.
in
ModelViolationReporter at line 32
__construct(callable|null $callback, bool $suppressDuplicateReports, bool $reportAfterResponse)
Create a new model violation reporter instance.
in
ModelViolationReporter at line 45
void
__invoke(Model $model, string|array $propertyOrProperties)
Handle a model violation.
at line 16
protected array
getViolationContext(Model $model, string $property)
Get the context data for the violation.
at line 27
protected Exception
getViolationException(Model $model, string $property)
Get the exception representing the violation.
in
ModelViolationReporter at line 83
protected bool
shouldReport(Model $model, string $property)
Determine if the violation should be reported.
in
ModelViolationReporter at line 98
protected void
markAsReported(Model $model, string $property)
Mark a violation as reported.