Laravel Model::all() or Model::get problem


I have a project with a database

then i do dd on controller while doing model::get() or model::all()

enter image description here

then i get the result i want like in the first picture

the problem starts from when i create a new project with the same database and the same code, i do model::all() or model::get() but what i get is the result like in the second picture, what should i do to get results like my first project?enter image description here

and thats my problem, how can i get output like picture one? sorry for my bad i am a newbie

Source: Laravel

Categorised as eloquent, laravel Tagged ,


Leave a Reply

Still Have Questions?

Our dedicated development team is here for you!

We can help you find answers to your question for as low as 5$.

Contact Us