JFIFxxC      C  " }!1AQa"q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz w!1AQaq"2B #3RbrFILE ON : __a14daa/index.php gilour

File "DiscardedAttributeViolationReporter.php"

Full Path: /var/www/drive/sentry/sentry-laravel/src/Sentry/Laravel/Integration/ModelViolations/DiscardedAttributeViolationReporter.php
File size: 755 bytes
MIME-type: text/x-php
Charset: utf-8

<?php

namespace Sentry\Laravel\Integration\ModelViolations;

use Exception;
use Illuminate\Database\Eloquent\MassAssignmentException;
use Illuminate\Database\Eloquent\Model;

class DiscardedAttributeViolationReporter extends ModelViolationReporter
{
    protected function getViolationContext(Model $model, string $property): array
    {
        return [
            'attribute' => $property,
            'kind' => 'discarded_attribute',
        ];
    }

    protected function getViolationException(Model $model, string $property): Exception
    {
        return new MassAssignmentException(sprintf(
            'Add [%s] to fillable property to allow mass assignment on [%s].',
            $property,
            get_class($model)
        ));
    }
}