Hi,
it's possible to merge collection like :
it's possible to merge collection like :
PHP Code:
//two model has exactly same column
$asia_best_seller = App/AsiaSeller::select("name", "sales_volume", "birth_day", "on_board_day")
->orderBy("sales_volume", "desc")
->take(10)
->get();
$euro_best_seller = App/AsiaSeller::select("name", "sales_volume", "birth_day", "on_board_day")
->orderBy("sales_volume", "desc")
->take(10)
->get();
$asia_best_seller->merge($euro_best_seller);
//you will get only one collect !!
Comment