25 个回复 | 最后更新于 2016-08-12
回复#22 @lincanbin :
那么直接拿你那个class做controller呢?
比如改名AvatarsController.php,放在App\Http\Controllers\,然后在AuthController.php调用:
use \App\Http\Controllers\AvatarsController as Avatar; $avatar = new Avatar\MDAvtars($username);这样会提示:class \App\Http\Controllers\AvatarsController\MDAvatars not found.
登录后方可回帖
啦咯啦咯啦咯