src/Traits/TakiAuthentication.php
public function loginUsername()
    {
        $loginBy    = config('taki.login_by');
        $loginField = config('taki.field.both');
        if ($loginBy === 'email') {
            $loginField = config('taki.field.email');
        } elseif ($loginBy === 'username') {
            $loginField = config('taki.field.username');
        }

        return $loginField;
    }
public function loginUsername()
    {
        $loginBy    = config('taki.login_by');
        $loginField = config('taki.field.both');
        if ($loginBy === 'email') {
            $loginField = config('taki.field.email');
        } elseif ($loginBy === 'username') {
            $loginField = config('taki.field.username');
        }

        return $loginField;
    }
public function loginUsername ( ) { $ loginBy = config ( 'taki.login_by' ) ; $ loginField = config ( 'taki.field.both' ) ; if ( $ loginBy === 'email' ) { $ loginField = config ( 'taki.field.email' ) ; } elseif ( $ loginBy === 'username' ) { $ loginField = config ( 'taki.field.username' ) ; } return $ loginField ; }
Get the login username to be used by the controller.

@return string
Get the login username to be used by the controller .