dimanche 6 mars 2016

laravel 5 Find issue

$account = Account::Find(1);

I use this code to get row in table which id is 1 when I return the value It become {"id":1,"0":1,"username":"Jack","1":"Jack","email":"jack@email.com","2":"email":"jack@email.com" } although I don't have attributes ("0","1","2")

Account is Eloquent model



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire