当我运行php artisan passport:install
引发异常时,找不到user_id列,我将迁移文件的user_id列更改为user_uuid
这是用于laravel api身份验证。
C:\MAMP\htdocs\affter-05-07-2019\mo-backend>php artisan passport:install --force
Encryption keys generated successfully.
Illuminate\Database\QueryException : SQLSTATE[42S22]: Column not found: 1054 Unknown column 'user_id' in 'field list' (SQL: insert into `oauth_clients` (`user_id`, `name`, `secret`, `redirect`, `personal_ac
cess_client`, `password_client`, `revoked`, `updated_at`, `created_at`) values (?, Monash Personal Access Client, CvDHMWM9FYqiDeGRWsW2M3U5AVdi055FcwzvEShN, http://localhost, 1, 0, 0, 2019-07-12 20:29:16, 2019-0
7-12 20:29:16))