htmlspecialchars() expects parameter 1 to be string, object given
Clash Royale CLAN TAG #URR8PPP htmlspecialchars() expects parameter 1 to be string, object given This is Controller. I named it CartController <?php namespace AppHttpControllers; use IlluminateHttpRequest; use GloudemansShoppingcartFacadesCart; use AppProduct; class CartController extends Controller { public function index() { $cartItems=Cart::content(); return view('cart.index', compact('cartItems')); } public function edit($id) { $product=Product::find($id); Cart::add($id,$product->name,'1',$product->price); } This is my welcome.blade.php. This is the page where I display all my Items. <div class="row"> @forelse($books->chunk(4) as $chunk) @foreach($chunk as $book) <div class="column-prod"> <a href="{{url('view')}}"> <div class="card-prod"> <center><img src="{{url('images',$book->image)}}" style="width: 300px; height: 30...