Support the ongoing development of Laravel.io →
posted 9 years ago
Blade
Last updated 2 years ago.
0

Have you tried dd($tweets) on your controller to see if there something?

Last updated 9 years ago.
0

Have you tryed.

 <h1>{!! $news['text'] !!}</h1>
0

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"

0

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.

0

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')]);
Last updated 9 years ago.
0
Last updated 9 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.