-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
multiple images problem #56
Comments
Check in your $results = $items->map(function ($item) use ($query) {
dd($item->postingimage);
}); If this returns an empty result the problem has nothing to do with sitesearch. Also make sure that your $matching = Posting::join('fsz_posting_tblbrands') // ... do your join
// Now refetch the needed models with all needed relations
$items = Posting::with('postingimage')->whereIn('id', $matching->pluck('id'))->get(); Also, be aware that you can only return one |
thanks a lot,your suggestion is works. |
i m retrieving attachMany relationship postingimage in this way but when i print {{result.model}} in content.htm file it shows null array in posting images
{"title":"gdsag","brandname":"Yamaha","description":"gdsga","price":5887,"name":"Rawalpindi","postingimage":[]}
cannot able to get the saved images in model
my init method in component
The text was updated successfully, but these errors were encountered: