Laravel composer vendor目录中复制插件目录安装

当不想进行composer require
比如 socialiteproviders/qq
需要拷贝文件

cp -rf ventor/socialiteproviders ventor
cp -rf vendor/laravel/socialite ventor/laravel

注意:
vendor目录中 打开 composer/autoload_static.php

 'S' =>
 array (
	 'SocialiteProviders\\WeixinWeb\\' => 29,
     'SocialiteProviders\\QQ\\' => 22,
     'SocialiteProviders\\Manager\\' => 27,
 ),
 'L' =>
 array (
	 'League\\Fractal\\' => 15,
	 'League\\Flysystem\\' => 17,
	 'Laravel\\Socialite\\' => 18,
 ),
 
 'SocialiteProviders\\WeixinWeb\\' =>
 array (
    0 => __DIR__ . '/..' . '/socialiteproviders/weixin-web',
 ),
 'SocialiteProviders\\QQ\\' =>
 array (
    0 => __DIR__ . '/..' . '/socialiteproviders/qq',
 ),
 'SocialiteProviders\\Manager\\' =>
 array (
    0 => __DIR__ . '/..' . '/socialiteproviders/manager/src',
 ),
 
 'Laravel\\Socialite\\' =>
 array (
    0 => __DIR__ . '/..' . '/laravel/socialite/src',
 ),

以上命名空间和相对于的个数加好之后就可以自动加载了

	php artisan config:cache
	
	Configuration cache cleared!
    Configuration cached successfully!

你可能感兴趣的:(PHP,larrael,laravel,composer,android,php)