I installed the Chargebee library onto my Laravel website (version 5.7). But when I want to use the library, all the classes from the library are not found. Here is my controller code:
<?php namespace AppApiV2Controllers; use ChargebeeChargeBeeEnvironment as ChargeBee_Environment; use ChargebeeChargeBeeModelsPlan as ChargeBee_Plan; use AppHttpControllersController; use IlluminateSupportFacadesDB; class ChargebeeController extends Controller { public function retrieveItem($plan) { ChargeBee_Environment::configure(env('CHARGEBEE_ENVIRONMENT'), env('CHARGEBEE_KEY')); return $plan_response = ChargeBee_Plan::retrieve($plan); } }
ChargebeeChargeBeeEnvironment and ChargebeeChargeBeeModelsPlan classes cannot be found.
Obviously it should be ChargeBee\ChargeBee, and the 'B' should be capitalized.