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
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 {
} <?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
}