title: I want to use LaravelShoppingcart by Crinsane but this error has tangled me " Please supply a valid identifier."
body: <p>I tried to integrate Crinsane's "Shopping Cart" but I do not know what I'm 
      wrong with.</p>
  
  <p>structure  folders <a href="https://i.stack.imgur.com/gLBZn.jpg" rel="nofollow noreferrer">enter image description here</a> or this </p>
  
  <p>"vendor\hardevine\shoppingcart\src\Facades\Cart.php"</p>
  
  <p>This is my cartcontrooler.php
          
  
  <pre><code>    namespace App\Http\Controllers;
  
      use Illuminate\Http\Request;
      use App\Product;
      use Gloudemans\Shoppingcart\Facades\Cart;
  
  
      class CartController extends Controller
      {
          /**
           * Display a listing of the resource.
           *
           * @return \Illuminate\Http\Response
           */
          public function index()
          {
              $needproduct = Product::needProduct()-&gt;get(); //AFISARE 4 PRODUSE INTR-O OARECARE ORDINE
  
              return view('pages.cart')-&gt;with('needproduct', $needproduct);
          }
  
          /**
           * Show the form for creating a new resource.
           *
           * @return \Illuminate\Http\Response
           */
          public function create()
          {
              //
          }
  
          /**
           * Store a newly created resource in storage.
           *
           * @param  \Illuminate\Http\Request  $request
           * @return \Illuminate\Http\Response
           */
          public function store(Request $request)
          {
              Cart::add($request-&gt;id, $request-&gt;name, 1, $request-&gt;price)
                  -&gt;associate('App\Product');
  
              return redirect()-&gt;route('cart.index')-&gt;with('success_message','Produsul a fost adaugat in cos');
          }
  </code></pre>
  
  <p>And this is Cart from hardevine project</p>
  
  <pre><code>        &lt;?php
          namespace Gloudemans\Shoppingcart\Facades;
          use Illuminate\Support\Facades\Facade;
  
          class Cart extends Facade {
              /**
               * Get the registered name of the component.
               *
               * @return string
               */
              protected static function getFacadeAccessor()
              {
                  return 'cart';
              }
          }
          ?&gt;
  </code></pre>
  
  <p><strong>this is the error "Please supply a valid identifier."</strong>
  **
  if I refresh 2 times my page shows me**</p>