* @copyright 2018 Webkul Software Pvt Ltd (http://www.webkul.com) */ class CartController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ protected $_config; protected $cart; public function __construct(CartRepository $cart) { $this->middleware(['customer', 'guest']); $this->_config = request('_config'); $this->cart = $cart; } public function add() { return "Adding Items to Cart"; } }