我目前在试图包括在我的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
有什么问题吗?我看到一个声明清单。 – lagbox 2014-10-06 05:01:14