Skip to content

Instantly share code, notes, and snippets.

Created May 18, 2015 16:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save anonymous/a33f2843f0bd9cfd2a70 to your computer and use it in GitHub Desktop.
Save anonymous/a33f2843f0bd9cfd2a70 to your computer and use it in GitHub Desktop.
// Model User.php
public function group()
{
return $this->belongsToMany('SARP\UserGroup');
}
\Auth::user()->group;
// I didn't do for the other Model because I don't need atm.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment