cartalyst/sentry — pull request #58 by aneeshep (2012-12-18 11:53:38+00:00)
Title: New method to get the default group of user.

Summery
----------------
1). Added a new method to fetch the default group of user.
2). Modified the constructor and add_to_group to adapt the new change

Usage
-----------

1). While adding a a user to group you can pass 'true' as second argument to make it as a default group

eg: Sentry::user($user_id)->add_to_group('grpname', true);

2). the default group of a user can be retrieved using

$user = Sentry::user();
$default_group = $user->default_group();

Changed files
---------------------

sentry/user.php

Added files
-----------------

migrations/2012_12_18_070212_modify_users_group_table.php