[WIP] Refactor generic & normal price
This commit is contained in:
@@ -16,8 +16,7 @@ class Prices
|
||||
|
||||
public static function getByArticle($id)
|
||||
{
|
||||
$prices = Article::byArticle($id)->with('prices.price')->get()->pluck('prices')->toArray()[0];
|
||||
// dump($prices);
|
||||
$prices = Price::byArticle($id)->with('price')->get()->toArray();
|
||||
$data = [];
|
||||
foreach ($prices as $price)
|
||||
{
|
||||
@@ -32,7 +31,7 @@ class Prices
|
||||
}
|
||||
}
|
||||
}
|
||||
dump($data);
|
||||
return $data;
|
||||
}
|
||||
|
||||
public static function getDatatable()
|
||||
|
||||
Reference in New Issue
Block a user