Fix on data for article, problem with id on polymorphic
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user