Support the ongoing development of Laravel.io →
Requests Database Eloquent
Last updated 2 years ago.
0

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);

//or

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

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

0

Sign in to participate in this thread!

Eventy

Your banner here too?

ronit5rg ronit5rg Joined 24 Jun 2016

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.