Example #1
0
 /**
  * Authorize a user.
  *
  * @param  \Spire\Orm\Model  $user  The user to authorize.
  * @return void
  */
 public static function authorize(\Spire\Orm\Model $user)
 {
     Session::put('auth.authorized', true);
     Session::put('auth.user', $user);
     static::$authorized = true;
     static::$user = $user;
 }