@rezuankassim so in your User model you've got this:
public function images()
{
return $this->hasMany(Image::class);
}
public function posts()
{
return $this->hasMany(Post::class);
}
Then you can use:
User::with('images', 'posts')->get();
This will give you all the users with their images and posts.