add column unique numbering scheme, more efficient selects
This commit is contained in:
@@ -226,4 +226,14 @@ class User extends BaseModel implements
|
||||
|
||||
$this->notify(new ConfirmEmail($newEmail, $confirmation->token));
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if this user has a table with the givenname
|
||||
*
|
||||
* @param string $name
|
||||
*/
|
||||
public function hasTable(string $name)
|
||||
{
|
||||
$this->tables()->where('name', $name)->exists();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user