src/Console/HasUsername.php
public function username()
    {
        if (($username = env('ADMIN_USERNAME', null)) != null) {
            return $username;
        }

        if (($username = git_user_name()) != null) {
            return $username;
        }

        return "Admin";
    }
public function username()
    {
        if (($username = env('ADMIN_USERNAME', null)) != null) {
            return $username;
        }

        if (($username = git_user_name()) != null) {
            return $username;
        }

        return "Admin";
    }
public function username ( ) { if ( ( $ username = env ( 'ADMIN_USERNAME' , null ) ) != null ) { return $ username ; } if ( ( $ username = git_user_name ( ) ) != null ) { return $ username ; } return "Admin" ; }
Obtains username.

@return mixed|null|string
Obtains username .