【发布时间】:2014-11-30 02:55:15
【问题描述】:
我目前正在尝试将这个包包含在我的 Laravel 应用程序中:https://github.com/tappleby/laravel-auth-token
我在 composer.json 中包含了"tappleby/laravel-auth-token": "0.3.*",如下所示:
"require": {
"laravel/framework": "4.2.*",
"intervention/image": "dev-master",
"laracasts/flash": "~1.0",
"laracasts/validation": "1.1.*",
"tappleby/laravel-auth-token": "0.3.*"
}
我将'Tappleby\AuthToken\AuthTokenServiceProvider' 和'AuthToken'=>'Tappleby\Support\Facades\AuthToken','AuthTokenNotAuthorizedException' =>'Tappleby\AuthToken\Exceptions\NotAuthorizedException' 添加到app/config/app.php。
之后我跑了composer install。这是我一直添加包的方式,但现在每次都报错:[RuntimeException]
Error Output: PHP Fatal error: Class 'Tappleby\AuthToken\AuthTokenServiceProvider' not found in /var/www/example.com/htdocs/vendor/laravel/framework/src/Illuminate/Foundation/ProviderRepository.php on line 157
【问题讨论】:
-
这里有问题吗?我看到了一个声明列表。
标签: php laravel laravel-4 composer-php