我使用Laravel Framework版本5.4.36并且我已经设置了成功护照,我已经运行命令
php artisan vendor:publish --tag=passport-components
我的路线:
| Domain | Method | URI | Name | Action | Middleware |
+--------+----------+-----------------------------------------+------------+----------------------------------------------------------------------------+--------------+
| | GET|HEAD | / | | Closure | web |
| | POST | api/details | | App\Http\Controllers\API\UserController@details | api,auth:api |
| | POST | api/login | | App\Http\Controllers\API\UserController@login | api |
| | GET|HEAD | api/loginError | loginError | App\Http\Controllers\API\UserController@loginError | api |
| | POST | api/register | | App\Http\Controllers\API\UserController@register | api |
| | GET|HEAD | api/test | test | App\Http\Controllers\API\UserController@test | api,auth:api |
| | GET|HEAD | api/user | | Closure | api,auth:api |
| | GET|HEAD | home | home | App\Http\Controllers\HomeController@index | web,auth |
| | GET|HEAD | oauth/authorize | | \Laravel\Passport\Http\Controllers\AuthorizationController@authorize | web,auth |
| | POST | oauth/authorize | | \Laravel\Passport\Http\Controllers\ApproveAuthorizationController@approve | web,auth |
| | DELETE | oauth/authorize | | \Laravel\Passport\Http\Controllers\DenyAuthorizationController@deny | web,auth |
| | POST | oauth/clients | | \Laravel\Passport\Http\Controllers\ClientController@store | web,auth |
| | GET|HEAD | oauth/clients | | \Laravel\Passport\Http\Controllers\ClientController@forUser | web,auth |
| | PUT | oauth/clients/{client_id} | | \Laravel\Passport\Http\Controllers\ClientController@update | web,auth |
| | DELETE | oauth/clients/{client_id} | | \Laravel\Passport\Http\Controllers\ClientController@destroy | web,auth |
| | GET|HEAD | oauth/personal-access-tokens | | \Laravel\Passport\Http\Controllers\PersonalAccessTokenController@forUser | web,auth |
| | POST | oauth/personal-access-tokens | | \Laravel\Passport\Http\Controllers\PersonalAccessTokenController@store | web,auth |
| | DELETE | oauth/personal-access-tokens/{token_id} | | \Laravel\Passport\Http\Controllers\PersonalAccessTokenController@destroy | web,auth |
| | GET|HEAD | oauth/scopes | | \Laravel\Passport\Http\Controllers\ScopeController@all | web,auth |
| | POST | oauth/token | | \Laravel\Passport\Http\Controllers\AccessTokenController@issueToken | throttle |
| | POST | oauth/token/refresh | | \Laravel\Passport\Http\Controllers\TransientTokenController@refresh | web,auth |
| | GET|HEAD | oauth/tokens | | \Laravel\Passport\Http\Controllers\AuthorizedAccessTokenController@forUser | web,auth |
| | DELETE | oauth/tokens/{token_id} | | \Laravel\Passport\Http\Controllers\AuthorizedAccessTokenController@destroy | web,auth |
| | GET|HEAD | testOracle | testOracle | App\Http\Controllers\WellcomeController@testOracle | web |
我找不到uri oauth / clients,它正在行动\Laravel\Passport\Http\Controllers\ClientController@forUser
,
我的错误是找不到操作\Laravel\Passport\Http\Controllers\ClientController@forUser
,
当我去文件夹供应商时,我只看到vendor\laravel\passport
passport folder
它没有链接\ Laravel \ Passport \ Http`
我如何修复此错误,谢谢