2
votes

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|

1
Show the file with your migration. - Pavel
And please fix your title while you're at it. Something that concisely summarizes the problem would be good. See How to Ask. - Chris

1 Answers

4
votes

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