lundi 26 septembre 2016

how to change insert fields in auth - laravel

I'm using this migration :

    Schema::create('users', function (Blueprint $table) {
        $table->increments('id');
        $table->string('fname');
        $table->string('lname');
        $table->string('username')->unique();
        $table->string('email')->unique();
        $table->string('password');
        $table->rememberToken();
        $table->timestamps();
    });

I installed auth. in the register url when I want to create an user I got this message :

Column not found: 1054 Unknown column 'name' in 'field list' (SQL: insert into `users` (`name`, `email`, `password`, `updated_at`, `created_at`) values..

I know what says the error, but I don't want to change fname to name.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire