Some things to keep in mind when configuring Anvard for Laravel 4:
The function findProfile specifies role_id, username, email, password and password_confirmation when creating a new user. I commented out role_id and password_confirmation because I have no need for these fields in my users table. I also commented out username and email because I am specifying rules to set those values in the app/config/packages/atticmedia/anvard/db.php file in the uservalues array.
When attempting to log in via an external provider, I was getting the error “Cannot redirect to an empty URL”. This was fixed by changing the line containing return Redirect::back(); to return Redirect::route('home');. After successfully logging in, the user is redirected to the named route ‘home’.
The Twitter API does not return an email address so I use the twitter displayName and append ‘@twitter.com’ to create a valid email so the user can be created.