示例#1
0
文件: Tokens.php 项目: synthx/infuse
 /**
  * Count all tokens
  */
 public function countTokens()
 {
     $number = 0;
     $tokensAccount = TokensAccountManager::where('guid', \Auth::user()->guid)->get();
     foreach ($tokensAccount as $tokenAccount) {
         $number += $tokenAccount->quantity;
     }
     return $number;
 }
示例#2
0
文件: functions.php 项目: cruide/wasp
function auth()
{
    return \App\Library\Auth::mySelf();
}