Support the ongoing development of →
Requests Database Eloquent
Last updated 1 year ago.

Hello, man it really strangely, it must be work so try to rewrite the return view('homeview')->with('posts', $posts); with:

return view('homeview')->withPosts($posts);


 return view('homeview', compact('posts'));

If this doesn't work, then show pls your roures from routes.php


Sign in to participate in this thread!


Your banner here too?

ronit5rg ronit5rg Joined 24 Jun 2016


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

Your logo here?

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

© 2024 - All rights reserved.