samedi 22 juin 2019

QueryException (42S22) SQLSTATE[42S22]: Column not found: 1054 Unknown column 'username'

my code values aren't updated in database and get this error(Illuminate \ Database \ QueryException (42S22) SQLSTATE[42S22]: Column not found: 1054 Unknown column 'username' in 'where clause' (SQL: select count() as aggregate from users where username = anikatabassum) ) and ( "SQLSTATE[42S22]: Column not found: 1054 Unknown column 'username' in 'where clause' (SQL: select count() as aggregate from users where username = anikatabassum)enter code here)

   public function up()
    {
        Schema::create('users', function (Blueprint $table) {
            $table->bigIncrements('id');
            $table->string('name');
            $table->string('email')->unique();
            $table->string('username')->unique();
            $table->timestamp('email_verified_at')->nullable();
            $table->string('password');
            $table->rememberToken();
            $table->timestamps();
        });



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire