Ejemplo n.º 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;
 }
Ejemplo n.º 2
0
function auth()
{
    return \App\Library\Auth::mySelf();
}