laravel-php How to create a class in the vendor directory by yourself to achieve automatic loading
phpcn_u1582
phpcn_u1582 2017-05-16 13:05:55
0
1
477

phpcn_u1582
phpcn_u1582

reply all(1)
漂亮男人

Add: Cart.php的头部声明namespace Mypack;
然后在composer.json文件的autoload/psr-4 inside the

node
"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.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template