【发布时间】:2015-01-04 01:11:06
【问题描述】:
我想使用这个包:https://github.com/lucadegasperi/oauth2-server-laravel/wiki/Installation 在 Laravel 中使用 OAuth 2.0
我无法正确安装它。首先,我无法更新作曲家,所以我必须将"minimum-stability": "stable" 更改为"minimum-stability": "dev"。通过更新作曲家,我所有的包都被替换了 bij dev 版本。
其次,我无法通过在终端中输入以下命令来发布我的包:php artisan config:publish lucadegasperi/oauth2-server-laravel。
我收到此错误:
php artisan config:publish lucadegasperi/oauth2-server-laravel
{"error":{"type":"ErrorException","message":"file_put_contents(\/Applications\/XAMPP\
/xamppfiles\/htdocs\/api-dashboardv2\/app\/storage\/meta\/services.json): failed to
open stream: Permission denied","file":"\/Applications\/XAMPP\/xamppfiles\/htdocs\
/api-dashboardv2\/vendor\/laravel\/framework\/src\/Illuminate\/Filesystem\
/Filesystem.php","line":69}}
我试过chmod -R 777 app,但无法更改应用程序的文件模式。我正在使用 XAMMP 进行开发。
我可以在没有作曲家或其他东西的情况下安装和发布这个包吗?
更新:
我现在收到以下错误:
PHP 致命错误:类 'League\OAuth2\Server\Storage\Adapter' 不是 在发现 /Applications/XAMPP/xamppfiles/htdocs/api-dashboardv2/vendor/lucadegasperi/oauth2-server-laravel/src/Storage/FluentAdapter.php 在第 18 行 {"error":{"type":"Symfony\Component\Debug\Exception\FatalErrorException","message":"类 'League\OAuth2\Server\Storage\Adapter' 不是 找到","file":"/Applications/XAMPP/xamppfiles/htdocs/api-dashboardv2/vendor/lucadegasperi/oauth2-server-laravel/src/Storage/FluentAdapter.php","line":18}}
而且,是否可以将 "minimum-stability": "dev" 设置回 'stable' 并仅获取 OAuth 包的开发版本?
【问题讨论】:
标签: php laravel package composer-php