Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

BadMethodCallException executing laravel artisan migrate

When I type "php artisan migrate", it gives the following error:

BadMethodCallException : Method Illuminate\Database\Schema\Blueprint::password does not exist.

at C:\xampp\htdocs\laravellab1\vendor\laravel\framework\src\Illuminate\Support\Traits\Macroable.php:98 94| */ 95| public function __call($method, $parameters) 96| { 97| if (! static::hasMacro($method)) {

98| throw new BadMethodCallException(sprintf( 99| 'Method %s::%s does not exist.', static::class, $method 100|
)); 101| } 102|

like image 236
KB_Shayan Avatar asked May 30 '26 06:05

KB_Shayan


1 Answers

Your migration has $table->password() in it I expect - change this to $table->string()

like image 188
Simon R Avatar answered May 31 '26 19:05

Simon R



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!