I can fix this by going in the migration for the user's table, and manually specifying the max-length of the email field, like so:
$table->string('email', 250)->unique();
As outlined in the Migrations guide to fix this all you have to do is edit your AppServiceProvider.php file and inside the boot method set a default string length:
use Illuminate\Support\Facades\Schema;
public function boot()
{
Schema::defaultStringLength(191);
}
No comments:
Post a Comment