Have you tried dd($tweets) on your controller to see if there something?
jonitopsg said:
Have you tried dd($tweets) on your controller to see if there something?
Yes dd returns everything as it should
jimgwhit said:
Have you tryed.
<h1>{!! $news['text'] !!}</h1>
this also throughs "Trying to get property of non-object"
I am dumbfounded. If anyone want to play with it a little and tell me where I am messing up it would be greatly appreciated. I zipped up my project https://www.dropbox.com/s/4k9nvyrx52fmoky/drs2.zip?dl=0
Of course I will change the keys once this gets resolved.
See if this article helps:
http://stackoverflow.com/questions/22636826/notice-trying-to-get-property-of-non-object-error
Trying to get property of non-object means the object you're trying to get the property is not an object. means $news is an either a array or may be it's null.
i never use compact but shouldn't it be passed like this ?
return view('pages.index', ['tweets' => compact('tweets')]);
Try json_decode prior to looping. And see http://iag.me/socialmedia/build-your-first-twitter-app-using-php-in-8-easy-steps/
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community