laravel - php 如何自己在vendor目录下创建一个类,实现自动加载
phpcn_u1582
phpcn_u1582 2017-05-16 13:05:55
0
1
464

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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!