Example #1
0
 /**
  * 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;
 }
Example #2
0
function auth()
{
    return \App\Library\Auth::mySelf();
}