Skip to content

Instantly share code, notes, and snippets.

@dharmu9898
Created August 16, 2023 11:24
$owner = Input::get('owner');
$count = Input::get('count');
$product = Product::whereOwnerAndStatus($owner, 0)->take($count)->get();
when i want to use foreach to loop for $product result with code like this:
foreach ($product->sku as $sku) {
// Code Here
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment