Declared that there are functions in the class
But when calling the function, the front desk keeps reporting
Fatal error: Uncaught Error: Class 'Yansongda\Pay\Pay' not found in D:\ phpStudy\PHPTutorial\WWW\laojianke\testpay.php:46 Stack trace: #0 D:\phpStudy\PHPTutorial\WWW\laojianke\testpay.php(76): App\Http\Controllers\PayController->return() # 1 {main} thrown in D:\phpStudy\PHPTutorial\WWW\laojianke\testpay.php on line 46
韦小宝2019-01-17 10:07:01
Isn’t there only Pay.php in the Yansongda folder? Take a look at how the namespace in your pay.php is set up