helllo my code is
$all_5_post = wp_terms::with(['wp_posts' => function ($query) {
$query->orderBy('id', 'desc')->take(5);
}])->whereIn('id',[3,4,6,9])->get();
getting relationship data in 3 id but 4,6,9 relationship data getting empty but when i only use WHERE elequent and doing multiple query for same 3,4,6,9 id it showing 5 relationship table data in each what i have to do now i need a solution.
from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2YrFQEC
via IFTTT
Aucun commentaire:
Enregistrer un commentaire