无法在我的 laravel 项目上安装护照
Can not install passport on my laravel project
我运行phpartisanpassport:install也phpartisan passport:install --force 但没有任何效果我得到相同的 error/issue。数据库中我的用户 table 没有添加任何内容。
错误:
Encryption keys generated successfully.
Illuminate\Database\QueryException
SQLSTATE[01000]: Warning: 1265 Data truncated for column 'id' at row 1 (SQL: insert into `oauth_clients` (`user_id`, `name`, `secret`, `provider`, `redirect`, `personal_access_client`, `password_client`, `revoked`, `id`, `updated_at`, `created_at`) values (?, Laravel Personal Access Client, xDElm83oBuzriqEs9ItvSymxWT8QGEliQBS8VFV8, ?, http://localhost, 1, 0, 0, 94a9e5f4-6e5c-42d4-a6dc-f2e53042edb4, 2021-10-18 16:24:43, 2021-10-18 16:24:43))
at C:\Users\Viruss\Desktop\meme-library-crud\crud-meme-app\vendor\laravel\framework\src\Illuminate\Database\Connection.php:703
699▕ // If an exception occurs when attempting to run a query, we'll format the error
700▕ // message to include the bindings with SQL, which will make this exception a
701▕ // lot more helpful to the developer instead of just the database's errors.
702▕ catch (Exception $e) {
➜ 703▕ throw new QueryException(
704▕ $query, $this->prepareBindings($bindings), $e
705▕ );
706▕ }
707▕ }
1 C:\Users\Viruss\Desktop\meme-library-crud\crud-meme-app\vendor\laravel\framework\src\Illuminate\Database\Connection.php:492
PDOException::("SQLSTATE[01000]: Warning: 1265 Data truncated for column 'id' at row 1")
2 C:\Users\Viruss\Desktop\meme-library-crud\crud-meme-app\vendor\laravel\framework\src\Illuminate\Database\Connection.php:492
PDOStatement::execute()
好吧,这个错误无法解决,所以我创建了一个新的 laravel 项目,运行 一切都从头开始,这帮助我再次避免了这个错误...
我运行phpartisanpassport:install也phpartisan passport:install --force 但没有任何效果我得到相同的 error/issue。数据库中我的用户 table 没有添加任何内容。
错误:
Encryption keys generated successfully.
Illuminate\Database\QueryException
SQLSTATE[01000]: Warning: 1265 Data truncated for column 'id' at row 1 (SQL: insert into `oauth_clients` (`user_id`, `name`, `secret`, `provider`, `redirect`, `personal_access_client`, `password_client`, `revoked`, `id`, `updated_at`, `created_at`) values (?, Laravel Personal Access Client, xDElm83oBuzriqEs9ItvSymxWT8QGEliQBS8VFV8, ?, http://localhost, 1, 0, 0, 94a9e5f4-6e5c-42d4-a6dc-f2e53042edb4, 2021-10-18 16:24:43, 2021-10-18 16:24:43))
at C:\Users\Viruss\Desktop\meme-library-crud\crud-meme-app\vendor\laravel\framework\src\Illuminate\Database\Connection.php:703
699▕ // If an exception occurs when attempting to run a query, we'll format the error
700▕ // message to include the bindings with SQL, which will make this exception a
701▕ // lot more helpful to the developer instead of just the database's errors.
702▕ catch (Exception $e) {
➜ 703▕ throw new QueryException(
704▕ $query, $this->prepareBindings($bindings), $e
705▕ );
706▕ }
707▕ }
1 C:\Users\Viruss\Desktop\meme-library-crud\crud-meme-app\vendor\laravel\framework\src\Illuminate\Database\Connection.php:492
PDOException::("SQLSTATE[01000]: Warning: 1265 Data truncated for column 'id' at row 1")
2 C:\Users\Viruss\Desktop\meme-library-crud\crud-meme-app\vendor\laravel\framework\src\Illuminate\Database\Connection.php:492
PDOStatement::execute()
好吧,这个错误无法解决,所以我创建了一个新的 laravel 项目,运行 一切都从头开始,这帮助我再次避免了这个错误...