Add: Cart.php
的頭部聲明namespace Mypack;
然后在composer.json
文件的autoload/psr-4
inside the
"Mypack\":"vendor/mypack"
In addition: It is not recommended to place customized class files in the vendor directory. You can create a directory with other names such as the same level library
yourself.