mercredi 15 février 2017

Laravel Accessor always returning 0

I have accessors to add a CSS Class, like so:

public function getTurmaNovaAttribute($value)
{
   return 2; //return "myClass";
}  

Then I use it:

<i class=" flag fa fa-camera-retro fa-lg"></i>  

The problem is, no matter the return It's always returning me 0.



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

Aucun commentaire:

Enregistrer un commentaire