Code:
$best_price = DB::select('Some SQL statement');
foreach($best_price as $best_price_id) {
$best_price_id->id;
};
$product->best_price_id = $best_price_id;
return $product->best_price_id;
Result:
The Response content must be a string or object implementing __toString(), "object" given.
Definately I am retrieving information from the DB incorrectly. Please suggest better option.
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2bMvqo9
via IFTTT
Aucun commentaire:
Enregistrer un commentaire