implement GRIDs

This commit is contained in:
2018-08-01 22:19:30 +02:00
parent 8988df93fd
commit 755c65a42d
12 changed files with 203 additions and 37 deletions
+5 -1
View File
@@ -62,7 +62,7 @@ class User extends BaseModel implements
* @var array
*/
protected $fillable = [
'name', 'title', 'email', 'password', 'bio', 'website'
'name', 'title', 'email', 'password', 'bio', 'website', 'confirmed'
];
/**
@@ -183,6 +183,10 @@ class User extends BaseModel implements
}
else {
$u = static::where('email', $ident)->first();
if (!$u) {
$u = static::where('name', $ident)->first();
}
}
if (!$u) throw new NotExistException("No user found matching \"$ident\"");