Create HasRole.php

Re-created the HasRole trait for backwards compatibility