protected function askForUsers()
    {
        $default = 0;
        $users = $this->users();
        $user_names = array_merge(
            ['Skip'],
            collect($users)->pluck('name')->toArray()
        );

        $selected_user_names =  $this->choice('Users?', $user_names ,$default, null, true);

        if ($selected_user_names == 0) return null;
        $users = collect($users)->filter(function ($user) use ($selected_user_names) {
            return in_array($user->name,$selected_user_names);
        });

        return $users->pluck('id');
    }
protected function askForUsers()
    {
        $default = 0;
        $users = $this->users();
        $user_names = array_merge(
            ['Skip'],
            collect($users)->pluck('name')->toArray()
        );

        $selected_user_names =  $this->choice('Users?', $user_names ,$default, null, true);

        if ($selected_user_names == 0) return null;
        $users = collect($users)->filter(function ($user) use ($selected_user_names) {
            return in_array($user->name,$selected_user_names);
        });

        return $users->pluck('id');
    }
protected function askForUsers ( ) { $ default = 0 ; $ users = $ this -> users ( ) ; $ user_names = array_merge ( [ 'Skip' ] , collect ( $ users ) -> pluck ( 'name' ) -> toArray ( ) ) ; $ selected_user_names = $ this -> choice ( 'Users?' , $ user_names , $ default , null , true ) ; if ( $ selected_user_names == 0 ) return null ; $ users = collect ( $ users ) -> filter ( function ( $ user ) use ( $ selected_user_names ) { return in_array ( $ user -> name , $ selected_user_names ) ; } ) ; return $ users -> pluck ( 'id' ) ; }
Ask for users.

@return string
Ask for users .