Remove a lot of deprecated code.

This commit is contained in:
James Cole
2018-07-25 06:45:25 +02:00
parent dbf019135a
commit 7c950c3022
39 changed files with 189 additions and 621 deletions

View File

@@ -219,28 +219,6 @@ class User extends Authenticatable
return (string)bin2hex($bytes);
}
/**
* @codeCoverageIgnore
* Checks if the user has a role by its name.
*
* Full credit goes to: https://github.com/Zizaco/entrust
*
* @param string $name
*
* @deprecated
* @return bool
*/
public function hasRole(string $name): bool
{
foreach ($this->roles as $role) {
if ($role->name === $name) {
return true;
}
}
return false;
}
/**
* @codeCoverageIgnore
* Link to import jobs.