【发布时间】:2015-06-17 01:53:47
【问题描述】:
我正在尝试使用 composer 在 laravel 5 中安装 abraham 的 twitteroauth 库 (https://github.com/abraham/twitteroauth)。像这样在 composer.json 中添加项目
"require": {
"laravel/framework": "5.0.*",
"php": ">=5.4.0",
"abraham/twitteroauth": "0.5.2"
},
当我运行 composer update 时,我在最后收到一个错误
- Installing abraham/twitteroauth (0.5.2)
Loading from cache
Writing lock file
Generating autoload files
[Symfony\Component\Debug\Exception\FatalErrorException]
Call to undefined method Illuminate\Foundation\Application::getCachedCompilePath()
Script php artisan clear-compiled handling the post-update-cmd event returned with an error
[RuntimeException]
Error Output:
update [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--lock] [--no-plugins] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [--with-dependencies] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [packages1] ... [packagesN]
欢迎任何帮助
【问题讨论】:
-
嗨,Amit,不相关但你考虑过 Laravel 5 的原生社交模块吗? github.com/laravel/socialite 这提供了 twitter oAuth 身份验证作为 Laravel 5 Auth 实现的一部分。
-
感谢@DavidBarker 将尝试社交名流模块
标签: laravel twitter-oauth