krafthaus / bauhaus

Laravel 4 Admin Generator
http://bauhaus.krafthaus.nl/
GNU General Public License v2.0
1 stars 0 forks source link

Not saving User created in admin #74

Open cwiggan opened 9 years ago

cwiggan commented 9 years ago

When i add a user in the admin, it says user created, but there is no record in the database. any idea how to correct this?

<?php

use KraftHaus\Bauhaus\Admin;

class UserAdmin extends Admin {

public function configureList($mapper)
{
    $mapper->identifier('email');
    $mapper->string('username');
}

public function configureForm($mapper)
{
    $mapper->text('username');
    $mapper->text('email');
    $mapper->password('password');
    $mapper->password('password_confirmation')->label('Confirm Password');;
   // $mapper->belongsToMany('roles')->display('name');
}

public function configureFilters($mapper)
{
    // ...
}

} <?php

use Zizaco\Confide\ConfideUser; use Zizaco\Confide\ConfideUserInterface; use Zizaco\Entrust\HasRole;

class User extends Eloquent implements ConfideUserInterface { use ConfideUser; use HasRole; // Add this trait to your user model

protected $fillable = ['username', 'email','password'];

}