Fix on data for article, problem with id on polymorphic

This commit is contained in:
Ludovic CANDELLIER
2022-01-18 00:08:04 +01:00
parent 050fd76122
commit 3641bd7d68
5 changed files with 63 additions and 16 deletions

View File

@@ -20,10 +20,10 @@ class HomeController extends Controller
{
$data = self::init();
// $data['offers'] = Offers::getLast()->toArray();
$data['articles'] = Articles::getArticlesWithOffers()->toArray();
$data['articles'] = Articles::getArticlesToSell();
// $data['prices'] = $data['articles']['offers'][0]['tariff']['price_lists'][0]['price_list_values'][0];
dump($data);
exit;
// dump($data);
// exit;
return view('Shop.home', $data);
}
}