Update User.php

update to make this guide work for laravel 4.1.26+
Merge pull request #2 from rebornishard/patch-2

Update User.php