Update User.php

update to make this guide work for laravel 4.1.26+