master
cody 2 years ago
parent d19c037560
commit 6b1861fa81

@ -55,7 +55,7 @@ class Admin extends Authenticatable implements Auditable
use SoftDeletes;
use \OwenIt\Auditing\Auditable;
const GUARD_NAME = "admin";
CONST GUARD_NAME = "admin";
public function guardName()
{
@ -67,7 +67,9 @@ class Admin extends Authenticatable implements Auditable
*
* @var array
*/
protected $guarded = ['id'];
protected $fillable = [
'name', 'username', 'password','project_ids','remember_token'
];
/**
* The attributes that should be hidden for arrays.
@ -75,7 +77,7 @@ class Admin extends Authenticatable implements Auditable
* @var array
*/
protected $hidden = [
'password', 'remember_token',
'password'
];
/**

Loading…
Cancel
Save