我目前正在尝试将此包包含在我的Laravel应用中:https : //github.com/tappleby/laravel-auth-token
我包含"tappleby/laravel-auth-token": "0.3.*"在composer.json中,如下所示:
"require": {
"laravel/framework": "4.2.*",
"intervention/image": "dev-master",
"laracasts/flash": "~1.0",
"laracasts/validation": "1.1.*",
"tappleby/laravel-auth-token": "0.3.*"
}
Run Code Online (Sandbox Code Playgroud)
并且我增加'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