public static function __callStatic($method, $parameters)
{
static $cachedRoles = null;
if (is_null($cachedRoles)) {
$cachedRoles = array_values(\Config::get('role.roles'));
}
if (in_array($method, $cachedRoles)) {
return self::findByName($method);
}
return parent::__callStatic($method, $parameters);
}