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



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

Aucun commentaire:

Enregistrer un commentaire