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;
    }



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2fF3yd8
via IFTTT

Aucun commentaire:

Enregistrer un commentaire