newSequence's avatar

Eloquent output appears hashed in Tinker console

I have a model called cart, I call a get on it in Tinker and while it returns records, at a certain point the records appear hashed. The application has not issues reading them though. I am using a sqlite database. I have pasted a sample of the output below, begins with proper data objects and then towards the bottom it appears to hash everything. All the data is read accurately in my application though, even for the hashed records. I am using the term hashed because I don't have a better word. Any ideas why this is occurring?

App\Cart {#795 id: "248", sessionid: "94be102b71613d194d1de761bc5623f0", accountid: "44", productid: "29", orderid: "277", promotionid: null, price: "23000", tax: "1437.5", created_at: "2016-11-07 16:14:23", updated_at: "2016-11-07 16:16:06", year: "2016", month: "9", subscriptionlengthid: "2", subscriptionid: "5", },

App\Cart {#793 id: "249", sessionid: "1cfac37be091c0f66694801d73c8c071", accountid: null, productid: "1", orderid: "279", promotionid: null, price: "1500", tax: "200", created_at: "2016-11-07 18:01:28", updated_at: "2016-11-07 18:07:45", year: "2016", month: "10", subscriptionlengthid: null, subscriptionid: null, },

App\Cart {#791 …14},

App\Cart {#789 …14},

App\Cart {#787 …14},

App\Cart {#785 …14},

App\Cart {#783 …14},

App\Cart {#781 …14},

App\Cart {#779 …14},

0 likes
2 replies
shez1983's avatar
shez1983
Best Answer
Level 23

that is a common thing.. usually in tinker if you try to get all records and there are over 1000s.. it lists the first few like in your example and then for the rst it just does that.. why do you need them all in tinker? you could do a foreach loop and that way it will be forced to dump them all?

i bet its to do with memory/or other such constraints

newSequence's avatar

That was it, thank you shez1983, just needed to limit the results.

Please or to participate in this conversation.