コード例 #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();
}