$products = Product::whereIn('id', $ids)
->orderBy('id', 'asc')
->get();
INSERT INTO table_name (column1,column2,column3,...)
VALUES (value1,value2,value3,...);
class Article extends Eloquent{
public function images(){
return $this->belongsToMany('Image', 'article_images', 'article_id', 'image_id');
}
}