updated to work with laravel 4 beta 5, and a repository factory