Here is my code:
public function order($id)
{
$product = Product::find($id);
$other_products = Product::find($id)->toArray();
return view('products.order',['product'=>$product,'other'=>$other_products]);
}
So my question is how can i exclude $product
from the $other_products
query, more like SELECT * FROM table WHERE product != $id