public function cart($id, Blog $blog) { $this->data['blogCart'] = $blog->getCart($id); return view('pages.blogCart', $this->data); }