执行 laravel artisan migrate 时发生 BadMethodCallException

KB_*_*yan 3 php database laravel

当我输入“php artisan migrate”时,出现以下错误:

BadMethodCallException:方法 Illuminate\Database\Schema\Blueprint::password 不存在。

在 C:\xampp\htdocs\laravellab1\vendor\laravel\framework\src\Illuminate\Support\Traits\Macroable.php:98 94| */ 95| 96 | 公共函数 __call($方法, $参数) {97| if (!static::hasMacro($method)) {

98| throw new BadMethodCallException(sprintf( 99| '方法 %s::%s 不存在。', static::class, $method 100|
)); 101| } 102|

Sim*_*n R 5

我希望您的迁移包含$table->password()在其中 - 将其更改为$table->string()