samedi 30 septembre 2017

Laravel 5.4 Accessors doesn't work

I have a User Eloquent model with attribute phone_1

here are method, but it does not work:

public function getPhone1Attribute($value)
    {
        xdebug_break();
        if ($value !== null) {
            return $this->formatPhone($value);
        }
        return $value;
    }



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire