Update User model

Implement methods added in newer version of Laravel.